ldap_provisioning module samba module

aurfalien - April 30, 2009 - 23:10
Project:LDAP provisioning
Version:5.x-1.0
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

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.

#1

miglius - May 5, 2009 - 17:11

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

#2

aurfalien - May 7, 2009 - 00:39

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?

#3

miglius - May 7, 2009 - 06:49

You have to install php mhash extensions.

#4

aurfalien - May 7, 2009 - 21:31

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.

#5

aurfalien - May 11, 2009 - 19:02

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?

 
 

Drupal is a registered trademark of Dries Buytaert.