#1
  1. No Profile Picture
    Contributing User
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Jul 2003
    Posts
    1,152
    Rep Power
    13

    Thumbs up How to create LDAP on linux??


    How to create LDAP on linux??I will setup it on my redhat9..Anybody can give me some advice and suggestion??Where is the documents i will read?..THX!!!
    Being a Code Headman !
  2. #2
  3. Psycho Canadian
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Jan 2001
    Location
    Canada
    Posts
    4,846
    Rep Power
    635
  4. #3
  5. No Profile Picture
    Javascript is the debbel
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    102
    Rep Power
    11
    Go to Administration, and follow the "Understanding LDAP" articles, there's a part 1 and part 2. if you follow the directions, it's step-by-step and worked (sort of) on my Red Hat and slackware boxes. The only problem I'm having is adding entries, so I'm sure it's something I did wrong.

    Also, just a general question, I've followed the Understanding LDAP article like 5 times on two or three different boxes. Has anyone been able to set it up without using the "puke" step in part 2?
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2004
    Posts
    1
    Rep Power
    0

    Red face how to configure ldap on linux redhat(EL) server


    Originally Posted by cleverpig
    How to create LDAP on linux??I will setup it on my redhat9..Anybody can give me some advice and suggestion??Where is the documents i will read?..THX!!!
    HOW TO CONFIGURED LDAP ON LINUX EL?
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Jul 2003
    Posts
    1,152
    Rep Power
    13
    I have finish the ladp configure...I can give u some help..
    It's my ldap.conf:
    # $OpenLDAP: pkg/ldap/libraries/libldap/ldap.conf,v 1.4.8.6 2000/09/05 17:54:38 kurt Exp $
    #
    # LDAP Defaults
    #

    # See ldap.conf(5) for details
    # This file should be world readable but not world writable.

    #BASE dc=example, dc=com
    #URI ldap://ldap.example.com ldap://ldap-master.example.com:666

    #SIZELIMIT 12
    #TIMELIMIT 15
    #DEREF never
    HOST 192.168.0.2
    BASE dc=beic,dc=gov.cn

    It's my sldap.conf:
    # $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.7 2001/09/27 20:00:31 kurt Exp $
    #
    # See slapd.conf(5) for details on configuration options.
    # This file should NOT be world readable.
    #
    include /etc/openldap/schema/core.schema
    include /etc/openldap/schema/cosine.schema
    include /etc/openldap/schema/inetorgperson.schema

    loglevel 296
    pidfile /var/run/slapd.pid
    argsfile /var/run/slapd.args


    #######################################################################
    # ldbm database definitions
    #######################################################################

    database ldbm

    suffix "dc=beic,dc=gov.cn"
    rootdn "cn=root,dc=beic,dc=gov.cn"
    rootpw beic

    directory /var/lib/ldap

    mode 0600

    index objectClass eq
    index cn,mail,sn eq,sub
    index departmentNumber eq

    cachesize 2000

    access to *
    by * read

    It's a user configure script:
    dn:cn=liudan,ou=people,dc=beic,dc=gov.cn
    cn:liudan
    sn:liudan
    mail:liu_dan@beic.gov.cn
    labeledURI:http://www.beic.gov.cn
    roomNumber:1234 liudan
    departmentNumber:Engineering
    telephoneNumber:010-66415588-1113
    pager:010-66415588
    mobile:010-13661031628
    objectclass:inetOrgPerson

    It's my work steps:
    root@RH9 openldap]# ldapadd -f users_liudan.ldif -x -D "cn=root,dc=beic,dc=gov.cn" -w beic
    adding new entry "cn=liudan,ou=people,dc=beic,dc=gov.cn"

    [root@RH9 openldap]# ldapadd -f users_liuej.ldif -x -D "cn=root,dc=beic,dc=gov.cn" -w beic
    adding new entry "cn=liuej,ou=people,dc=beic,dc=gov.cn"

    [root@RH9 openldap]# ldapmodify -f users_liuej.ldif -x -D "cn=root,dc=beic,dc=gov.cn" -w beic
    modifying entry "cn=liuej,ou=people,dc=beic,dc=gov.cn"

    [root@RH9 openldap]# ldapmodify -f users_liuej.ldif -x -D "cn=root,dc=beic,dc=gov.cn" -w beic
    modifying entry "cn=liuej,ou=people,dc=beic,dc=gov.cn"

    [root@RH9 openldap]# ldapmodify -f users_liuej.ldif -x -D "cn=root,dc=beic,dc=gov.cn" -w beic
    modifying entry "cn=liuej,ou=people,dc=beic,dc=gov.cn"

    [root@RH9 openldap]# ldapmodify -f users_liuej.ldif -x -D "cn=root,dc=beic,dc=gov.cn" -w beic
    modifying entry "cn=liuej,ou=people,dc=beic,dc=gov.cn"
    Being a Code Headman !

IMN logo majestic logo threadwatch logo seochat tools logo