Hi,

I can get the ldap_provisioning module to work, it adds users to my LDAP.

However I desperately need uidNumber which is included in the samba portion of the ldap_provisioning module.

I can't seem to get it to work because when I enable it (samba ldap provisioning module) and click on the create a user button, I get a blank screen.

The user does get created in my LDAP however, but with an attribute value of (an example);

sambaSID: %samba_sid

Any ideas would be very helpful.

Thanks in advance.

Comments

miglius’s picture

In case of the blank screen inspect the webserver logs. They should give more information.

aurfalien’s picture

Hi miglius,

First, thanks a lot for replying.

Second, my apache error log;

Call to undefined function mhash() in /var/www/html/modules/ldap_provisioning/contrib/samba/lam/lib/createntlm.inc on line 352, referer: http://10.0.10.241/?q=admin/user/user/create

Did a brief google, nothing so far. Will keep trying.

Any nuggets of info?

miglius’s picture

You have to install php mhash extensions.

aurfalien’s picture

Hi m,

Thanks for the update and while the error in the Apache logs go away after installing the mhash php package, I still cannot create the user and get the error below. Notic ethat uidNumber value, my LDAP requires a numerical value and thats why it wasn't created. How do I get this to behave?

dn: uid=jon,ou=people,dc=domain,dc=com
objectClass: top
objectClass: apple-user
objectClass: inetOrgPerson
objectClass: shadowAccount
objectClass: posixAccount
objectClass: sambaSamAccount
uid: jon
uidNumber: jon_number
sambaSID: %samba_sid
gidNumber: 20
mail: jon@domain.com
givenName: jon
sn: Doe
cn: Jon Doe
displayName: Jon Doe
userPassword: password
loginShell: /bin/tcsh
homeDirectory: /homes/jon
apple-user-homeDirectory: /homes/jon

The new user was not created. Please contact site administrator.

aurfalien’s picture

Hi m,

This is an update to my post.

How does one actually use the samba ldap provisioning module?

Under ldap provisioning in the basic ldap attributes field I have;

objectClass: top
objectClass: apple-user
objectClass: inetOrgPerson
objectClass: shadowAccount
objectClass: posixAccount
uid: %uid
uidNumber: %uid_number
gidNumber: 20
mail: %mail
givenName: %first_name
sn: %last_name
cn: %first_name %last_name
displayName: %first_name %last_name
userPassword: password
loginShell: /bin/tcsh
homeDirectory: /homes/%uid
apple-user-homeDirectory: /homes/%uid

And under ldap provisioning samba in the samba ldap attributes field I have;

objectClass: sambaSamAccount
uidNumber: %uid_number
sambaSID: %samba_sid

If I make uidNumber to be 3000 vs %uid_number, I can add a user;

For example;

uidNumber: 3000

What am I doing wrong?

Nr. 18’s picture

Is the %uid_number being converted to a number? It is the unix id of a user and should be identical for each user.