6.13 Typical errors on creating a new user or a new group
i've got the following error:
Could not find base dn, to get next uidNumber at /usr/local/sbin//smbldap_tools.pm line 909
1. you do not have created the object to defined the next uidNumber
and gidNumber available.
* for version 0.8.7 : you can just run the smbldap-populate
script that will update the sambaDomain entry to store those
informations
* for version before 0.8.7 : You have updated the
smbldap-tools to version 0.8.5 or newer. You have to do this
manually. Create an file called add.ldif and containing
dn: cn=NextFreeUnixId,dc=idealx,dc=org
objectClass: inetOrgPerson
objectClass: sambaUnixIdPool
uidNumber: 1000
gidNumber: 1000
cn: NextFreeUnixId
sn: NextFreeUnixId
and then add the object with the ldapadd utility:
$ ldapadd -x -D "cn=Manager,dc=idealx,dc=org" -w secret -f add.ldif
Here, 1000 is the first available value for uidNumber and
gidNumber (of course, if this value is already used by a
user or a group, the first available after 1000 will be used).
2. The error also appear when there is a need for TLS (ldapTLS=1 in
smbldap.conf) and something is wrong with certificate naming or
path settings.