Public bug reported:

Binary package hint: smbldap-tools

samba: 3.0.24-2ubuntu1.2
slapd: 2.3.30-2
smbldap-tools: 0.9.2-3

I tried following the instructions at
http://times.usefulinc.com/2005/09/25-ldap,
http://www.islandlinux.org/HOWTO/openldap_samba.html, and /usr/share/doc
/smbldap-tools/README.Debian.gz to setup LDAP authentication in Samba.

When trying to populate the directory with "smbldap-populate", I receive
one of the two following error messages. The error message is displayed
after adding the entries for default users and groups (stripped this
from the log). After the error, I am asked to update the root password.

If the sambaDomain already exists (error message 1)

## start
Populating LDAP directory for domain MYDOMAIN 
(S-1-5-21-3861878729-2867403814-231267397)
(using builtin directory structure)

... (no errors while adding default groups and users)
entry sambaDomainName=MYDOMAIN,dc=domain,dc=com already exist. Updating it...
failed to modify entry: structural object class modification from 'sambaDomain' 
to 'inetOrgPerson' not allowed at /usr/sbin/smbldap-populate line 488, <GEN1> 
line 21.

Please provide a password for the domain root:
Changing UNIX and samba passwords for root
## end

If it does not exist yet (error message 2)

## start
Populating LDAP directory for domain MYDOMAIN 
(S-1-5-21-3861878729-2867403814-231267397)
(using builtin directory structure)

... (no errors while adding default groups and users)
adding new entry: sambaDomainName=MYDOMAIN,dc=domain,dc=com
failed to add entry: naming attribute 'sambaDomainName' is not present in entry 
at /usr/sbin/smbldap-populate line 495, <GEN1> line 21.

Please provide a password for the domain root:
Changing UNIX and samba passwords for root
## end

During setup, the samba domain is automatically created by one of the following:
 - restarting samba after configuring it to use LDAP as backend
 - calling `net getlocalsid`
 
I have tried to delete the entry and even tried to add auxiliary object classes 
to support inetOrgPerson and the samba attributes, but I failed at it.

After (not completely) populating the directory, I cannot add add users
via smbldap-useradd:

## start
$ smbldap-useradd -a -m -M firstname.surname -c "Firstname Surname" fsurname
Error looking for next uid at /usr/share/perl5/smbldap_tools.pm line 1044.
## end

** Affects: smbldap-tools (Ubuntu)
     Importance: Undecided
         Status: New

-- 
smbldap-populate cannot correctly setup sambaDomain
https://bugs.launchpad.net/bugs/149395
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to