Swift connection to Active Directory server -


i building cocoa os x app (10.10) in xcode using swift , trying connect enterprise ad server in institution both authentication , directory lookups.

i confident code using correct getting error stating

session can't opened because daemon refused connection.

here connection code:

let options: [string:string] = [kodsessionproxyaddress: "ldap://address.com", kodsessionproxyusername: "username", kodsessionproxypassword: "password"] var err:nserror? var session = odsession(options: options, error: &err) println("error: \(err)") 

when run get:

error: optional(error domain=com.apple.opendirectory code=1003 "unable open proxy session"  userinfo=0x610000066280 {nslocalizeddescription=unable open proxy session,  nslocalizedfailurereason=session can't opened because daemon refused connection.}) 

i not ad administrator enterprise system can not make alterations there if, suspecting, restriction on server side guess there not can do.

but if can offer advice or solution greatful.

for bit of info, computer coding on, can run ldapsearch commands terminal know have connectivity server. also, machine not bound server using odsession.defaultsession() out far know?


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -