You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to get this working, but xcode compains about all kinds of stuff, line two "No exact matches in call to instance method 'login'", and "Invalid redeclaration of 'connection()'"
`
let connection = try? LDAP(url: "ldaps://perfect.com")
let credential = LDAP.login(binddn: "CN=judy,CN=Users,DC=perfect,DC=com", password: "0penLDAP")
connection.login(info: credential) { err in
do {
try connection.search(base: "CN=Users,DC=perfect,DC=com", filter:"(objectclass=*)") {
print(res)
}
}catch (let err) {
// failed for some reason
}
}`
Could anyone get a complete working example of a login and asynchronous search?
Preferably for swift 5.5
The text was updated successfully, but these errors were encountered:
Login
`
let credential = LDAP.Login(binddn: "user@domain", password: "ss")
do {
let connection = try LDAP(url: "ldaps://domain")
connection.login(info: credential) { err in
if (err == nil) {
connection.search(base: "DC=base,DC=example,DC=com", filter: "(sAMAccountName=testuser)") { res in
print(res)
Trying to get this working, but xcode compains about all kinds of stuff, line two "No exact matches in call to instance method 'login'", and "Invalid redeclaration of 'connection()'"
`
let connection = try? LDAP(url: "ldaps://perfect.com")
let credential = LDAP.login(binddn: "CN=judy,CN=Users,DC=perfect,DC=com", password: "0penLDAP")
Could anyone get a complete working example of a login and asynchronous search?
Preferably for swift 5.5
The text was updated successfully, but these errors were encountered: