I am using LDAP as my source for users. This works fine, and everyone can simply log in using their LDAP info, and it will create a Drupal user for that person. However, one of our requirements is during user registration how to check this user already in ldap server or not , means is there any API by which i can check this user already in ldap server on user registration.
1 Answer
The LDAP module can handle that for you.
-
In my scenario user is crating by custom module so i need check user is already in ldap server or not if not then new user created as drupal user.– FawwadCommented Oct 20, 2014 at 5:53
-
Fair enough... the LDAP module contains the only good API I know of, but you can use the php ldap_connect() and ldap_search() if you want to do it manually– DarvanenCommented Oct 20, 2014 at 5:56