LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-15-2012, 04:45 AM   #1
nooralain
Member
 
Registered: Apr 2012
Distribution: Centos,ubuntu
Posts: 49

Rep: Reputation: Disabled
ldap cn stuff


i need to know how to make the DIT tree this way

here cn is a group
cn=users,dc=nooralain,dc=com


cn=admin,cn=users,dc=nooralain,dc=com this is the admin who is the root user

cn=boxiusers,cn=Users,dc=nooralain,dc=com

Last edited by nooralain; 05-15-2012 at 01:40 PM.
 
Old 05-15-2012, 05:32 AM   #2
em31amit
Member
 
Registered: Apr 2012
Location: /root
Distribution: Ubuntu, Redhat, Fedora, CentOS
Posts: 190

Rep: Reputation: 55
create ldif file and add these attribute and include into ldap db using ldapadd command

you can follow something like this to set up a minimal LDAP DIT (Directory Information Tree).
Open temporary file:

Code:
# vi base.ldif
Insert the following. Once again the dn has to be changed to reflect your environment.

Code:
# Tree root
dn: dc=example,dc=com
objectClass: dcObject
objectclass: organization
o: example.com
dc: example
description: Tree root

# LDAP admin
dn: cn=admin,dc=example,dc=com
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: admin
userPassword: {SSHA}LDeTJEEBhqypKL2FpQuFc2j4Na1TLTRW
description: LDAP administrator
Apply the file:

Code:
# ldapadd -x -D cn=admin,dc=example,dc=com -W -f base.ldif
Validate LDAP DIT: Query your LDAP DIT : this time as anonymous user - hence no password is shown for your cn=admin,dc=example,dc=com):


Code:
# ldapsearch -xLLL -b dc=example,dc=com

Hope it helps. .
 
Old 05-15-2012, 01:37 PM   #3
nooralain
Member
 
Registered: Apr 2012
Distribution: Centos,ubuntu
Posts: 49

Original Poster
Rep: Reputation: Disabled
Hey man i know how create that the basic setup is done

the root node

dc=nooralain,dc=com is there

i want to create something as i mentioned in the above
coz am not able to authenticate the software using ldap coz it has to be in that format

hope you reply with something that i can create the above metioned
 
  


Reply



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
[SOLVED] LDAP authentication error [Can't contact LDAP server] from apache httpd jonathan_w_brown Linux - Server 6 12-28-2011 05:30 PM
[SOLVED] Apache authentication: allow LDAP group OR user named guest, but not all LDAP users AlucardZero Linux - Server 1 05-25-2011 03:21 PM
authenticating through one ldap server that uses other ldap servers & active director dreamm Linux - Server 1 02-21-2007 08:22 AM
LXer: LDAP Series Part IV - Installing OpenLDAP on Debian Plus Some LDAP Commentary LXer Syndicated Linux News 0 10-31-2006 06:54 PM
When installing new stuff in suse 9.1, do you uninstall old stuff first? randon SUSE / openSUSE 1 12-25-2004 04:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

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