ldapsearch -x -b "dc=osa,dc=com" "(cn=Janny)"
ldapadd -x -W -D "cn=root,dc=osa,dc=com" -f my.ldif
ldapmodify -x -W -D "cn=root,dc=osa,dc=com" -f my.ldif
ldapdelete -x -W -D "cn=root,dc=osa,dc=com" "cn=janny,ou=linux,dc=osa,dc=com"
ps. To delete the whole database
service ldap stop
rm -f /var/lib/ldap/*
ps2. We can set some default values for these commands
vi /etc/openldap/ldap.conf
BASE dc=osa,dc=com
#URI ldap://ldap.example.com ldap://ldap-master.example.com:666
URI ldap://linux.kirika.idv.tw
HOST linux.kirika.idv.tw
#SIZELIMIT 12
#TIMELIMIT 15
#DEREF never
TLS_CACERTDIR /etc/openldap/cacerts
TLS_REQCERT never
Then, we don't need to give -b and -h in the commands.
Blog Archive
-
▼
2006
(19)
-
▼
December
(19)
- Use OpenSSL to Get Hash Values
- Linux Hostname
- Linux File Access Permissions
- LDAP with TLS
- Home Directory Solution for LDAP Linux Users
- LDAP Replica
- LDAP Partition
- Linux 開機時設定
- 提示符號含所在路徑
- Fedora 5 Console Font
- LDAP vs. Linux Account
- LDAP - osa_top.ldif
- LDAP - top.ldif
- LDAP vs. Outlook Express - kevin.ldif
- LDAP vs. Outlook Express - userdefine.schema
- RedHat RPM
- OpenLDAP 指令
- Certification
- 進階 vi 教學
-
▼
December
(19)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment