AW: [Samba] Adding users with usrmgr/smbldap-useradd

Oeltze, Benjamin Benjamin.Oeltze at
Mon Dec 4 08:24:43 GMT 2006

have a look at LDAP Suffix, usersdn, computersdn and so on in smbldap.conf. Are they configured right?
We have also set slaveLDAP and masterLDAP values. I dont rely on (If not defined....)
Mit freundlichen Grüßen
Benjamin Oeltze
Systems Engineer
Fujitsu Siemens Computers
Hildesheimer Str. 25
30880 Laatzen
Telephone: 05118489 1872
Mobile: 016096354617
Email: mailto: benjamin.oeltze at


Von: at im Auftrag von Mark Rutherford
Gesendet: Fr 01.12.2006 17:08
An: samba at
Betreff: [Samba] Adding users with usrmgr/smbldap-useradd

Samba 3.0.23d, on Debian Sarge -  using the packages
smbldap-tools 0.9.2

Greetings all,

I am trying to set up a new PDC using LDAP, etc.
Adding/deleting/modifying users in LDAP works fine using phpldapadmin.
These users also work just fine logging in/out.

I am trying to get the usrmgr tool to also work, so im working on the
scripts on the server.
I am getting this error however when I use smbldap-useradd:
Can't call method "get_value" on an undefined value at ./smbldap-useradd
line 197, <DATA> line 283.

The line in the file contains the following code:
$userGroupSID = $group_entry->get_value('sambaSID');

Not being a perl expert, not really sure what it wants.
In smbldap.conf I have this set:

Unless it wants something else? I really have no idea on this one.

I am assuming that since this is not working on the server that usrmgr
is not going to work either.
I can add machines using the same script (smbldap-useradd -w "%u")
I am running this to add users as such:
smbldap-useradd -a "%u"

Some oddities with usrmgr also,
In usrmgr all the users that were added to LDAP do exist.
There are no groups shown in in the bottom of the view in the groups area.
I can modify the users to my hearts desire, changing their passwords,
logon times, etc and that all works.

If I try to add a group I get an 'access denied'
If I try to add a user i get an error 'the username could not be found'
(I am assuming this is because there is no working script? YET.)
I know not all of the windows management tools actually work, but as
long as users can be removed/added it really does not matter to me.

I can add machines using srvmgr and that also works fine.
Ideas anyone?
Thanks for the help

To unsubscribe from this list go to the following URL and read the
instructions: <> 

More information about the samba mailing list