Samba and LDAP walk-through bugs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Server Guide |
Expired
|
Undecided
|
Unassigned | ||
ubuntu-docs (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: ubuntu-docs
Ubuntu Server 10.04 LTS 32-bit
Samba 3.4.7
OpenLDAP 2.4.21
I've been working through the Samba and LDAP documentation, setting up a new server from scratch, and I'm currently on my fifth attempt. I'm not sure if I'm missing something at the core level or not, but I figured I'd at least chime in. In finding the fixes for these issues, I've come across a multitude of forum posts and google hits regarding the same problems.
So far, here are the consistent bugs that I've encountered(the solution on #1 isn't mine, but I've pasted it in, anyways. #2 was pretty obvious to me):
1) [ldap_bind: Invalid credentials (49)] - After much googling and frustration, I found ONE guy who was able to figure out how to get past this, based on a howtoforge tutorial listed in his post. The problem has to do with the cleartext password in the config file.
The solution was found here:
http://
In a nutshell, the admin password needs to be converted to MD5 and readded.
run slappasswd -h {MD5}
copy that into the following config file and run ldapadd on the file:
dn: cn=config
changetype: modify
dn: olcDatabase=
changetype: modify
add: olcRootDN
olcRootDN: cn=admin,cn=config
dn: olcDatabase=
changetype: modify
add: olcRootPW
olcRootPW: {MD5}your password here
dn: olcDatabase=
changetype: modify
delete: olcAccess
2) [INDEX ALREADY EXISTS] - For the samba setup, the walkthough at https:/
* The step adding the samba indexes to the ldap db using ldapmodify from the copied-in samba_indexes.ldif file fails because there's already an index for 'uidNumber'. To fix this issue, just remove the line in samba_indexes.ldif that adds the uidNumber eq index and run the ldapmodify command again. Make sure to use ldapsearch to verify that the indexes got added. (ldapsearch -xLLL -D cn=admin,cn=config -x -b cn=config -W olcDatabase={1}hdb)
Thanks, keep up the great work!
Karl
tags: | added: serverguide |
The Ubuntu Documentation team has moved the serverguide out of the ubuntu-docs source, it is now under the serverguide project. Moving this bug accordingly.