fail to create a new account

associates - November 25, 2008 - 00:22
Project:LDAP provisioning
Version:6.x-1.0-alpha2
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

Hi,

I was wondering if anyone might be able to help me here. I have installed and enabled LDAP provisioning on Drupal 6.6. I have also a list of Contacts in my LDAP server that is up and running. I was hoping that i could see those contacts with LDAP provisioning in drupal but could not find them in administer, user management, account management. That is the first question.

I then tried to create a new account under account management but to no avail. I got the following error message as follows

Fatal error: Call to undefined function ldap_connect() in C:\AppServ\www\drupal-6.6\sites\all\modules\ldap_integration\ldap_integration\LDAPInterface.php on line 132

Any help would be greatly appreciated.

Thank you in advance

#1

associates - November 25, 2008 - 04:13

Hi,

I did a bit of search on that error message stated in the earlier post. Some people believed it's something to do with php_ldap.dll in the php.ini file. I went in there to check to see if it's commented and the answer was yes, it's been commented. I then re-started the Apache2 after un-commenting it. This does not help resolve it either. I then checked to see if i have php5/pear by loading phpinfo() page and could find it there. I wonder if anyone might be able to tell me where else i might want to try out.

Thank you in advance

#2

miglius - November 25, 2008 - 13:01

Undefined ldap_connect() means that there is no ldap extensions loaded to your php. Look in the phpinfo() output and search for ldap. You should find some info when ldap extensions are loaded.

#3

miglius - November 25, 2008 - 13:15

Undefined ldap_connect() means that there is no ldap extensions loaded to your php. Look in the phpinfo() output and search for ldap. You should find some info when ldap extensions are loaded.

#4

associates - November 26, 2008 - 02:19

Thank you for your reply, Miglius

This is the thing that I just could not find any of LDAP extension in the phpinfo(). I have un-commented "extension=php_ldap.dll" by getting rid of ";" in the front of it. I then re-started the Apache2 and am still getting that error message again. I have tried to google "how to enable ldap extension" on the internet but so far with no luck. Hope i could get some pointers from you or anyone else.

Thank you in advance

#5

associates - November 28, 2008 - 06:36

Hi Miglius,

I have finally managed to get it to work now with php_ldap. My question now is whether with ldap_provisioning, i would be able to view and edit all the contacts that are in my LDAP server. I have all our client's contact details stored in my LDAP server and would like to be able to manage (view, edit, add, and delete) them through drupal 6.6

Thank you for your help in advance

#6

miglius - November 28, 2008 - 08:13

Ldap_provisioning is more meant to create new accounts in ldap and associate them with the drupal accounts, it can be also be used to rename/delete ldap accounts (when mapped drurpal account is renamed or deleted). To sync data between ldap and drupal you should use ldapdata module which comes with ldap_integration package.

Ldap account will be associated with the drupal account only after the user with his ldap credentials logs in to drupal at least once.

#7

Ariesto - February 5, 2009 - 18:07

Associates,

What did you change to make the above ldap error above go away? Everything worked fine for me on my test server, but recently I moved to an off-campus server and now I get:

Fatal error: Call to undefined function ldap_connect() ldap_integration/LDAPInterface.php on line 132

Cron can't even run now. I'm wondering if my move off-campus has to do with my lack of ldap access.

#8

rok - April 3, 2009 - 02:12

hi miglius,

is it necessary to config ldapdata module when i want to create a new account ? and when create an account there is the error :
• User validate: user data could not be read in the LDAP directory. Please contact site administrator.
• Error! User data could not be read in the LDAP directory. Please contact site administrator.
• The new user was not created. Please contact site administrator.

here just tell me to contact site administrator, i could admin the drupal and my ldap server,but in which module could i fix the error?

thank you very much~

#9

miglius - April 3, 2009 - 11:42

ldapdata module is optional. If it is enabled and configured, ldap_provisioning can display those fields on registration form and create in LDAP upon creation of the new account.

The errors you're getting means that drupal was not able to connect and bind to the ldap server using credentials given at "admin/settings/ldap/ldapprov" LDAP authentication section.

I wold recommend upgrading to the dev release. It has a "Test" button next to the authentication settings to test if drupal can bind to the LDAP with the saved credentials.

#10

miglius - April 8, 2009 - 16:44
Status:active» postponed (maintainer needs more info)

Do you still have those issues?

 
 

Drupal is a registered trademark of Dries Buytaert.