Results 1 to 1 of 1

Thread: Setup Ldap using script [CentOs5]

  1. #1
    Senior Member Rahul.Patil's Avatar
    Join Date
    Feb 2012
    Mumbai india
    Thanked 50 Times in 47 Posts
    Rep Power

    Default Setup Ldap using script [CentOs5]

    Dear all,

    I have created a script which help to create test Ldap server

    This script create three OU's and each OU has no. of users provided by us:
    1) ou=engineer
    2) ou=sales
    3) ou=people

    default password is "test" for all users. we can find users list using "slapcat | less" command , also useful for setup Ldap client and create auto home dir. after loging.

    Here is what the output looks like when run in a shell
    HTML Code:
    [root@ldap ldap_ldif]# bash
            --client-setting        -cs     print client side settings
            --configure-client      -cc     configure ldap client
            --disable-client        -dc     configure ldap client
            --run                   -r      start ldap server configuration
            --run-debug             -rd     start ldap server configuration in debug mode

    i can't paste code here because its above 1000 characters , so please find the attachment of the script.

    Hope you like it, and as always I am sure there is a much better way. However I am always learning and loving linux.

    Note: this script is created only for testing ldap auth with various application
    Attached Files Attached Files
    Last edited by Rahul.Patil; 4th July 2012 at 08:23 PM.
    Rahul Patil <>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Solved] CentOS5.5 64 bit os RAM limit issue
    By kumarat9pm in forum CentOS / RHEL / Fedora
    Replies: 2
    Last Post: 23rd January 2011, 08:17 AM
  2. Uninstalling Sylog broke my server :( [CentOs5.4]
    By Static in forum Linux software
    Replies: 5
    Last Post: 11th May 2010, 10:43 AM
  3. Problem installing qmail Centos5.3(final) Red hat 4
    By dragodan85 in forum Mail Servers
    Replies: 12
    Last Post: 20th October 2009, 07:11 PM
  4. md0 in fstab on Centos5.2 prevents boot
    By marros in forum CentOS / RHEL / Fedora
    Replies: 0
    Last Post: 24th February 2009, 08:30 PM
  5. Error during LDAP Client Setup ???
    By raina_ajeet in forum Databases servers
    Replies: 0
    Last Post: 29th November 2007, 10:01 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts