micro changes
This commit is contained in:
parent
9cbc88c8c6
commit
570b38d599
|
@ -3,7 +3,7 @@
|
|||
(define (open-anonymous-ldap-v3-session host)
|
||||
(let ((session (ldap-init host)))
|
||||
(set-ldap-session-option! (ldap-session-option-value protocol-version) 3 session)
|
||||
(ldap-simple-bind-as-nobody session)
|
||||
(ldap-simple-bind-anonymous session)
|
||||
session))
|
||||
|
||||
(define (get-value-alist entry)
|
||||
|
@ -17,11 +17,11 @@
|
|||
(with-ldap-session
|
||||
(open-anonymous-ldap-v3-session host)
|
||||
(lambda ()
|
||||
(let ((first-entry
|
||||
(let ((result
|
||||
(ldap-search
|
||||
root-dn (ldap-scope-arguments onelevel)
|
||||
"(objectClass=*)" ldap-attributes-all-user-attributes #f)))
|
||||
(let lp ((entry (ldap-first-entry first-entry))
|
||||
(let lp ((entry (ldap-first-entry result))
|
||||
(res '()))
|
||||
(if (not entry)
|
||||
res
|
||||
|
|
Loading…
Reference in New Issue