Omldapsync HowTo - Five

From Scalix Wiki
Revision as of 13:49, 25 June 2008 by Ltward (Talk | contribs) (Handy LDAP commands)

Jump to: navigation, search

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

Handy LDAP commands

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