delphi - Connect to Sun LDAP with ADO -
i want connect (and user's group) sun ldap server delphi program. think adsi works microsoft ldap. try ado, can't connect.
can show code how this?
i think this code fit bill.
there more adsi ldap, , experience easier use ldap client connect activedirectory other way around - trying do, unfortunatly.
to started, here fail safe way authenticate user.
- establish connection ldap server service account. if possible, use ldap protocol on ssl, ldaps
- search username (wich cn=jdoe part) full dn (distinguished name)
- if have duplicate result, stop here error
- bind ldap dn , password trying validate. make shure using same validation method on both side.
- if binds, password valid.
- close connection established
- depending on needs, either hold on connection made step 1 or tear down, too.
Comments
Post a Comment