ntenzpunishment
December 18th, 2008, 09:33 AM
Hi there,
I know there are topics about openldap, samba etc but didnt find the answers im looking for. I used this guide: OpenLDAP + Samba Domain Controller, http://www.howtoforge.org/openldap-samba-domain-controller-ubuntu7.10-p3 On Ubuntu 7.10, but unfortunatly there are some differences because im running ubuntu server 8.10
First of all this is not accurate:
# We need to configure OpenLDAP now.
dpkg-reconfigure slapd
# Answer the on-screen prompts with:
No
DNS domain name: example.local
Name of your organization: example.local
Admin password: 12345
Confirm password: 12345
OK
BDB
No
Yes
No
The menu is not in the same order (so i choose default)
Second: I dont have the slapd.conf so I cant add the schema but I did try this guide: https://help.ubuntu.com/8.10/serverguide/C/samba-ldap.html
root@dc01-ubuntu:~# slaptest -f schema_convert.conf -F /tmp/ldif_output
/etc/ldap/schema/samba.schema: line 496 objectclass: AttributeType not found: "displayName"
slaptest: bad configuration directory!
root@dc01-ubuntu:~# ls -lrt /etc/ldap/schema/
total 184
-rw-r--r-- 1 root root 3591 2008-10-25 02:36 README
-rw-r--r-- 1 root root 3393 2008-10-25 02:36 openldap.ldif
-rw-r--r-- 1 root root 6889 2008-10-25 02:36 nis.ldif
-rw-r--r-- 1 root root 1343 2008-10-25 02:36 misc.ldif
-rw-r--r-- 1 root root 3571 2008-10-25 02:36 inetorgperson.ldif
-rw-r--r-- 1 root root 14030 2008-10-25 02:36 cosine.schema
-rw-r--r-- 1 root root 12089 2008-10-25 02:36 cosine.ldif
-rw-r--r-- 1 root root 20346 2008-10-25 02:36 core.schema
-rw-r--r-- 1 root root 21175 2008-10-25 02:36 core.ldif
-rw-r--r-- 1 root root 2084 2008-10-25 02:36 corba.schema
-rw-r--r-- 1 root root 2180 2008-10-25 02:36 collective.schema
-rw-r--r-- 1 root root 4678 2008-10-25 02:36 ppolicy.schema
-rw-r--r-- 1 root root 1602 2008-10-25 02:36 openldap.schema
-rw-r--r-- 1 root root 7723 2008-10-25 02:36 nis.schema
-rw-r--r-- 1 root root 5996 2008-10-25 02:36 nadf.schema
-rw-r--r-- 1 root root 2471 2008-10-25 02:36 misc.schema
-rw-r--r-- 1 root root 3295 2008-10-25 02:36 java.schema
-rw-r--r-- 1 root root 6360 2008-10-25 02:36 inetorgperson.schema
-rw-r--r-- 1 root root 3378 2008-10-25 02:36 dyngroup.schema
-rw-r--r-- 1 root root 10474 2008-10-25 02:36 duaconf.schema
-rw-r--r-- 1 root root 20221 2008-12-17 22:09 samba.schema
So what I learnt is that because of above I get the following error:
root@dc01-ubuntu:~# smbldap-populate -u 30000 -g 30000
Populating LDAP directory for domain DOMSMB (S-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)
(using builtin directory structure)
entry dc=example,dc=local already exist.
entry ou=Users,dc=example,dc=local already exist.
entry ou=Groups,dc=example,dc=local already exist.
entry ou=Computers,dc=example,dc=local already exist.
entry ou=Idmap,dc=example,dc=local already exist.
adding new entry: uid=root,ou=Users,dc=example,dc=local
failed to add entry: objectClass: value #4 invalid per syntax at /usr/sbin/smbldap-populate line 499, <GEN1> line 58.
adding new entry: uid=nobody,ou=Users,dc=example,dc=local
failed to add entry: objectClass: value #4 invalid per syntax at /usr/sbin/smbldap-populate line 499, <GEN1> line 89.
adding new entry: cn=Domain Admins,ou=Groups,dc=example,dc=local
failed to add entry: objectClass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 499, <GEN1> line 101.
adding new entry: cn=Domain Users,ou=Groups,dc=example,dc=local
failed to add entry: objectClass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 499, <GEN1> line 112.
adding new entry: cn=Domain Guests,ou=Groups,dc=example,dc=local
failed to add entry: objectClass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 499, <GEN1> line 123.
adding new entry: cn=Domain Computers,ou=Groups,dc=example,dc=local
failed to add entry: objectClass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 499, <GEN1> line 134.
adding new entry: cn=Administrators,ou=Groups,dc=example,dc=local
failed to add entry: objectClass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 499, <GEN1> line 179.
adding new entry: cn=Account Operators,ou=Groups,dc=example,dc=local
failed to add entry: objectClass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 499, <GEN1> line 201.
adding new entry: cn=Print Operators,ou=Groups,dc=example,dc=local
failed to add entry: objectClass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 499, <GEN1> line 212.
adding new entry: cn=Backup Operators,ou=Groups,dc=example,dc=local
failed to add entry: objectClass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 499, <GEN1> line 223.
adding new entry: cn=Replicators,ou=Groups,dc=example,dc=local
failed to add entry: objectClass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 499, <GEN1> line 234.
adding new entry: sambaDomainName=DOMSMB,dc=example,dc=local
failed to add entry: invalid DN at /usr/sbin/smbldap-populate line 499, <GEN1> line 242.
Please provide a password for the domain root:
/usr/sbin/smbldap-passwd: user root doesn't exist
Would someone please help me out - would be greatly appreciated. I dont want to install 7.10 and ignore security issues etc.
I know there are topics about openldap, samba etc but didnt find the answers im looking for. I used this guide: OpenLDAP + Samba Domain Controller, http://www.howtoforge.org/openldap-samba-domain-controller-ubuntu7.10-p3 On Ubuntu 7.10, but unfortunatly there are some differences because im running ubuntu server 8.10
First of all this is not accurate:
# We need to configure OpenLDAP now.
dpkg-reconfigure slapd
# Answer the on-screen prompts with:
No
DNS domain name: example.local
Name of your organization: example.local
Admin password: 12345
Confirm password: 12345
OK
BDB
No
Yes
No
The menu is not in the same order (so i choose default)
Second: I dont have the slapd.conf so I cant add the schema but I did try this guide: https://help.ubuntu.com/8.10/serverguide/C/samba-ldap.html
root@dc01-ubuntu:~# slaptest -f schema_convert.conf -F /tmp/ldif_output
/etc/ldap/schema/samba.schema: line 496 objectclass: AttributeType not found: "displayName"
slaptest: bad configuration directory!
root@dc01-ubuntu:~# ls -lrt /etc/ldap/schema/
total 184
-rw-r--r-- 1 root root 3591 2008-10-25 02:36 README
-rw-r--r-- 1 root root 3393 2008-10-25 02:36 openldap.ldif
-rw-r--r-- 1 root root 6889 2008-10-25 02:36 nis.ldif
-rw-r--r-- 1 root root 1343 2008-10-25 02:36 misc.ldif
-rw-r--r-- 1 root root 3571 2008-10-25 02:36 inetorgperson.ldif
-rw-r--r-- 1 root root 14030 2008-10-25 02:36 cosine.schema
-rw-r--r-- 1 root root 12089 2008-10-25 02:36 cosine.ldif
-rw-r--r-- 1 root root 20346 2008-10-25 02:36 core.schema
-rw-r--r-- 1 root root 21175 2008-10-25 02:36 core.ldif
-rw-r--r-- 1 root root 2084 2008-10-25 02:36 corba.schema
-rw-r--r-- 1 root root 2180 2008-10-25 02:36 collective.schema
-rw-r--r-- 1 root root 4678 2008-10-25 02:36 ppolicy.schema
-rw-r--r-- 1 root root 1602 2008-10-25 02:36 openldap.schema
-rw-r--r-- 1 root root 7723 2008-10-25 02:36 nis.schema
-rw-r--r-- 1 root root 5996 2008-10-25 02:36 nadf.schema
-rw-r--r-- 1 root root 2471 2008-10-25 02:36 misc.schema
-rw-r--r-- 1 root root 3295 2008-10-25 02:36 java.schema
-rw-r--r-- 1 root root 6360 2008-10-25 02:36 inetorgperson.schema
-rw-r--r-- 1 root root 3378 2008-10-25 02:36 dyngroup.schema
-rw-r--r-- 1 root root 10474 2008-10-25 02:36 duaconf.schema
-rw-r--r-- 1 root root 20221 2008-12-17 22:09 samba.schema
So what I learnt is that because of above I get the following error:
root@dc01-ubuntu:~# smbldap-populate -u 30000 -g 30000
Populating LDAP directory for domain DOMSMB (S-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)
(using builtin directory structure)
entry dc=example,dc=local already exist.
entry ou=Users,dc=example,dc=local already exist.
entry ou=Groups,dc=example,dc=local already exist.
entry ou=Computers,dc=example,dc=local already exist.
entry ou=Idmap,dc=example,dc=local already exist.
adding new entry: uid=root,ou=Users,dc=example,dc=local
failed to add entry: objectClass: value #4 invalid per syntax at /usr/sbin/smbldap-populate line 499, <GEN1> line 58.
adding new entry: uid=nobody,ou=Users,dc=example,dc=local
failed to add entry: objectClass: value #4 invalid per syntax at /usr/sbin/smbldap-populate line 499, <GEN1> line 89.
adding new entry: cn=Domain Admins,ou=Groups,dc=example,dc=local
failed to add entry: objectClass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 499, <GEN1> line 101.
adding new entry: cn=Domain Users,ou=Groups,dc=example,dc=local
failed to add entry: objectClass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 499, <GEN1> line 112.
adding new entry: cn=Domain Guests,ou=Groups,dc=example,dc=local
failed to add entry: objectClass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 499, <GEN1> line 123.
adding new entry: cn=Domain Computers,ou=Groups,dc=example,dc=local
failed to add entry: objectClass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 499, <GEN1> line 134.
adding new entry: cn=Administrators,ou=Groups,dc=example,dc=local
failed to add entry: objectClass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 499, <GEN1> line 179.
adding new entry: cn=Account Operators,ou=Groups,dc=example,dc=local
failed to add entry: objectClass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 499, <GEN1> line 201.
adding new entry: cn=Print Operators,ou=Groups,dc=example,dc=local
failed to add entry: objectClass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 499, <GEN1> line 212.
adding new entry: cn=Backup Operators,ou=Groups,dc=example,dc=local
failed to add entry: objectClass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 499, <GEN1> line 223.
adding new entry: cn=Replicators,ou=Groups,dc=example,dc=local
failed to add entry: objectClass: value #2 invalid per syntax at /usr/sbin/smbldap-populate line 499, <GEN1> line 234.
adding new entry: sambaDomainName=DOMSMB,dc=example,dc=local
failed to add entry: invalid DN at /usr/sbin/smbldap-populate line 499, <GEN1> line 242.
Please provide a password for the domain root:
/usr/sbin/smbldap-passwd: user root doesn't exist
Would someone please help me out - would be greatly appreciated. I dont want to install 7.10 and ignore security issues etc.