Omldapsync HowTo - Five
Contents
Troubleshooting
UM 1065 - https://bugzilla.scalix.com/show_bug.cgi?id=16535 error 1005: Entry must have a valid global unique id ldap_bind: No such object
[OM 16078] An attribute's value contains invalid characters. Usually this is self-evident but in the case of a PDL with an underscore in the name you may not realize that Scalix does not allow underscores in PDL names. So change the group name in LDAP or Active Directory and remove the underscore.
Handy LDAP commands
omldapsearch
To search an Active Directory domain controller:
# omldapsearch -D cn=Administrator,cn=users,dc=mydomain,dc=net -w secret -h adlab.mydomain.net -b dc=mydomain,dc=net cn=* cn
OpenLDAP
# ldapadd -x -D cn=admin,dc=mydomain,dc=net -w secret -f /tmp/addfile
# ldapmodify -D cn=admin,dc=mydomain,dc=net -w secret -f /tmp/modfile
# ldapdelete -x -D cn=admin,dc=mydomain,dc=net -w secret uid=ppig,dc=mydomain,dc=net
# ldapsearch -x -b dc=mydomain,dc=net cn="donald duck"
SunONE
This will not work:
$ ldapdelete -D "directory manager" -w secret "uid=dduck,dc=mydomain,dc=net"
but this will:
$ cat /tmp/duckdel dn: uid=DDuck,dc=mydomain,dc=net changetype: delete $ ldapmodify -D "cn=directory manager" -w secret -f /tmp/duckdel
$ ldapmodify -r -D "cn=directory manager" -w secret -f /tmp/duckmod
$ ldapsearch -b dc=mydomain,dc=net "cn=donald duck"
Active Directory
# ldapsearch -x -h exlab.mydomain.net -b dc=mydomain,dc=net -D "cn=administrator,cn=users,dc=mydomain,dc=net" -w <password>
References
Sun ONE Directory Server Administration Guide
Sun ONE Directory Server Deployment Guide
Sun ONE Directory Server 5.2 Reference Manual
Sun Java Enterprise System 2005Q4 Installer tutorial
Scalix Server Setup and Configuration Guide
Scalix HowTo: Using OpenLDAP for password management
ScalixReady Technical Note: OpenLDAP in a Scalix Environment