Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-07-2009, 07:25 AM   #1
Registered: Nov 2008
Posts: 38

Rep: Reputation: 15
Cool LDAP Authentication

how do i setup a ldap server on the centos server
so that i can import the samba users into it,


Old 01-07-2009, 07:52 AM   #2
Registered: Sep 2005
Location: UK
Distribution: Gentoo/Debian/Ubuntu
Posts: 307

Rep: Reputation: 38
Try this: CentOS OpenLDAP Quickstart

It's too much of an open question really so I hope that helps.
Old 01-07-2009, 08:25 AM   #3
Registered: Nov 2008
Posts: 38

Original Poster
Rep: Reputation: 15
well i have started ldap by /etc/rc.d/init.d/ldap start

it says

Checking configuration files for slapd: config file testing succeeded
[ OK ]
Starting slapd: [ OK ]

but what next how do i add users to it or how can i test it
Old 01-07-2009, 08:44 AM   #4
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Rep: Reputation: 31
Install phpldapadmin, this is a good gui to see your ldap tree.

Next you will need to add the samba.schema file to your ldap system. Do a google search for this but NOTE - the newer version of LDAP does not use the ldap.conf file to import schema files, it instead uses cn=config. I think this is as of 2.4.11 so make sure the tutorial you use is correct for your version.

Next you need to install samba smbldap-tools smbclient samba-doc. once installed you need to populate your ldap tree with the samba files using one of the tools provided by samba-tools

Have a look here (note that adding the samba schema file may not work for your LDAP version)

Once that is done you can add a user like this

smbldap-useradd -a -m john

Last edited by jax8; 01-07-2009 at 08:46 AM.
Old 01-07-2009, 11:45 AM   #5
Registered: Sep 2006
Location: Orange County, NY
Distribution: Ubuntu, Solaris, Android
Posts: 329
Blog Entries: 21

Rep: Reputation: 52
Ive found success w/ webmin



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ldap authentication sandeepthug Linux - Software 1 01-07-2009 07:39 AM
Using LDAP Authentication jravnsba Linux - Software 2 12-07-2008 11:50 AM
ldap authentication help ... sir-lancealot Linux - Server 2 10-11-2007 05:00 PM
ldap authentication goestin Linux - Networking 2 12-27-2005 12:27 PM
LDAP Authentication Staceman Linux - Software 0 07-31-2003 09:14 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:22 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration