分类: 网络与安全
2010-01-29 16:12:47
# emerge openldap |
include /etc/openldap/schema/core.schema include /etc/openldap/schema/collective.schema include /etc/openldap/schema/corba.schema include /etc/openldap/schema/cosine.schema include /etc/openldap/schema/duaconf.schema include /etc/openldap/schema/dyngroup.schema include /etc/openldap/schema/inetorgperson.schema include /etc/openldap/schema/java.schema include /etc/openldap/schema/misc.schema include /etc/openldap/schema/nis.schema include /etc/openldap/schema/openldap.schema include /etc/openldap/schema/ppolicy.schema |
# slappasswd New password: Re-enter new password: {SSHA}EXB2nvdO6dJCTp2u32wX79xMbJyeSJEE |
# /etc/init.d/slapd start * Starting ldap-server ... [ ok ] |
# ldapsearch -xLLL -W -D cn=Manager,dc=your-domain,dc=com,dc=cn -b dc=your-domain,dc=com,dc=cn Enter LDAP Password: No such object (32) |
# ldapadd -xLLL -W -D cn=Manager,dc=your-domain,dc=com,dc=cn -b dc=your-domain,dc=com,dc=cn Enter LDAP Password: dn: dc=your-domain,dc=com,dc=cn objectClass: dcObject objectClass: organization o: rootObject dc: your-domain |
# ldapsearch -xLLL -W -D cn=Manager,dc=your-domain,dc=com,dc=cn -b dc=your-domain,dc=com,dc=cn dn: dc=your-domain,dc=com,dc=cn objectClass: dcObject objectClass: organization o: rootObject dc: your-domain |