smbldap-populate: failes to add any uid entries

Bug #134498 reported by MrHaroldA
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
smbldap-tools (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Binary package hint: smbldap-tools

smbldap-populate is unable to add any uid objects. This might be related to #124875 since that also occurs om my system...

-H-

$ sudo smbldap-populate
Populating LDAP directory for domain MSHOME (S-1-5-21-406113952-1193301398-3047728428)
(using builtin directory structure)

Use of uninitialized value in concatenation (.) or string at /usr/sbin/smbldap-populate line 171.
entry dc=example,dc=intra already exist.
entry dc=example,dc=intra already exist.
entry ou=groups,dc=example,dc=intra already exist.
entry ou=computers,dc=example,dc=intra already exist.
entry ou=idmap,dc=example,dc=intra already exist.
adding new entry: uid=root,dc=example,dc=intra
failed to add entry: objectclass: value #4 invalid per syntax at /usr/sbin/smbldap-populate line 495, <GEN1> line 7.
adding new entry: uid=nobody,dc=example,dc=intra
failed to add entry: objectclass: value #4 invalid per syntax at /usr/sbin/smbldap-populate line 495, <GEN1> line 8.
adding new entry: cn=Domain Admins,ou=groups,dc=example,dc=intra
failed to add entry: objectclass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 495, <GEN1> line 9.
adding new entry: cn=Domain Users,ou=groups,dc=example,dc=intra
failed to add entry: objectclass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 495, <GEN1> line 10.
adding new entry: cn=Domain Guests,ou=groups,dc=example,dc=intra
failed to add entry: objectclass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 495, <GEN1> line 11.
adding new entry: cn=Domain Computers,ou=groups,dc=example,dc=intra
failed to add entry: objectclass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 495, <GEN1> line 12.
adding new entry: cn=Administrators,ou=groups,dc=example,dc=intra
failed to add entry: objectclass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 495, <GEN1> line 16.
adding new entry: cn=Account Operators,ou=groups,dc=example,dc=intra
failed to add entry: objectclass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 495, <GEN1> line 18.
adding new entry: cn=Print Operators,ou=groups,dc=example,dc=intra
failed to add entry: objectclass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 495, <GEN1> line 19.
adding new entry: cn=Backup Operators,ou=groups,dc=example,dc=intra
failed to add entry: objectclass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 495, <GEN1> line 20.
adding new entry: cn=Replicators,ou=groups,dc=example,dc=intra
failed to add entry: objectclass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 495, <GEN1> line 21.
adding new entry: sambaDomainName=example.intra,dc=example,dc=intra
failed to add entry: invalid DN at /usr/sbin/smbldap-populate line 495, <GEN1> line 21.

Please provide a password for the domain root:
/usr/sbin/smbldap-passwd: user root doesn't exist

Revision history for this message
MrHaroldA (mrharolda) wrote :

FOUND IT!!!

   1. Install samba-doc
   2. zcat /usr/share/doc/samba-doc/examples/LDAP/samba.schema.gz to /etc/ldap/schema/samba.schema
   3. add the schema to /etc/ldap/slapd.conf

But why isn't this schema installed with samba or smbldap-tools???

Revision history for this message
Lionel Porcheron (lionel.porcheron) wrote :

Thanks for taking time to report this bug.
We have a bug opened for including samba.schema in samba package: #62889

Changed in smbldap-tools:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Marco (tintelen) wrote :

I'm afread that adding the samba schema to the slapd.conf file was not enough in my case. The documentation (slapd 2.4.11) states that the slapd daemon will by default use the folder "/etc/ldap/slapd.d", even if there is such a config file (which is the default config file name and location).

This folder is created during the installation. So any change in the config file is not picked up.
To come around this I started the slapd daemon manually with the commandline option "-f /etc/ldap/slapd.conf" added.

so it looks like this: "/usr/sbin/slapd -u openldap -h ldap://0.0.0.0 -d 255 -f /etc/ldap/slapd.conf".

I'm still working on this [ldap installation together with samba] though, so there might me other problems as well.

Revision history for this message
Marco (tintelen) wrote :

[typo: "afread" should be "afraid" - but I haven't found the edit function yet...]

Revision history for this message
TurquitoJC (turquitojc) wrote :

Marco:
in OpenLDAP 2.4 you could use /etc/default/slapd file to specify your slapd.conf file location (set the value for SLAPD_CONF parameter).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.