[Date Prev][Date Next] [Chronological] [Thread] [Top]

»Ø¸´: Looking for an application with an example directory.



hi:
    first I suggest you read the OpenLDAP Admin Guide carefully !! , in the
Quick Start paragram there have a good example just for you to use , and
second I give you a example below , you can do like that:

*********************************************************************
the slapd.conf:
    ...................
#######################################################################
# ldbm database definitions
#######################################################################

database ldbm
suffix  "dc=ldap,dc=tbs,dc=com,dc=cn"
#suffix  "o=My Organization Name, c=US"
rootdn  "cn=Manager,dc=ldap,dc=tbs,dc=com,dc=cn"
#rootdn  "cn=Manager, o=My Organization Name, c=US"
# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw   tbs
# The database directory MUST exist prior to running slapd AND
# should only be accessable by the slapd/tools. Mode 700 recommended.
directory /homes/chenxd/LdapServer/var/openldap-ldbm
# Indices to maintain
index objectClass eq

................................................
***********************************************************************
example.ldif:

###########################################################
#     The LDAP Directory DataBase For TBS DataBase        #
#                Create By chenxd                         #
###########################################################

# The root entry for LDAP Server Directory

dn: dc=ldap, dc=tbs, dc=com, dc=cn
objectclass: top
objectclass: dcObject
objectclass: organization
dc: ldap
o: Openet Information Technology Co., Ltd.
postalAddress: 1008, News Center Building, Shennan Road, Shenzhen, P.R.CHINA
postalCode: 518027
telephoneNumber: (0755)2090399
street: 1008, News Center Building, Shennan Road
st: Openet
businessCategory: Internet Infra-structure Solution Provider & Value-added
Service Provider
description: www.openet.com.cn

# The TBS Users entry for LDAP Server Directory

dn: ou=TbsUsers, dc=ldap, dc=tbs, dc=com, dc=cn
objectclass: top
objectclass: organizationalUnit
ou: TbsUsers
description: The TBS users group

.................................................................
*************************************************************************]
the command:
    #ldapadd -x -D"cn=Manager,dc=ldap,dc=tbs,dc=com,dc=cn" -W -f
example.ldif
     then input your Manager password of LDAP , in this example it is "tbs"
all work well  :P)

****************************************************************************
*

                        lucky :P) by China, X.D.Chen




-----Original Message-----
·¢¼þÈË: Edwin L. Culp <eculp@EnContacto.Net>
ÊÕ¼þÈË: openldap-software@OpenLDAP.org <openldap-software@OpenLDAP.org>
ÈÕÆÚ: 2001Äê4ÔÂ10ÈÕ 4:30
Ö÷Ìâ: Looking for an application with an example directory.


>I'm having a problem utilizing ldap.  I feel as though I need an
application
>such as a contact data base - customer directory or what ever with a
working
>example database that I can load and learn from through hands on
interaction
>and manipulation.  I'm just not able to take this from concept to
application.
>
>Does anyone know of something like this or have a suggestion based on some-
>thing you have done to get hands-on experience while starting from zero.
>
>Thanks,
>
>ed
>--
>
>