LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-21-2006, 09:58 AM   #1
gokulnath
LQ Newbie
 
Registered: Sep 2006
Posts: 17

Rep: Reputation: 0
Creating my own schema in LDAP


I am new to ldap.i have installed and configured ldap with default schema setup. it is working fine.

Now I want to create ldap schema for my company structure. can i add my own attribute type and objectclass in schema file ? will that affect existing schema or ldap setup.

Any Ideas!!
 
Old 09-22-2006, 03:12 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,950

Rep: Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341Reputation: 1341
I'm not an expert in ldap also, but I think you can create create your own schema file and add it in slapd.conf to be used by your ldap server. Take a look here to see how you can do this.

Regards
 
Old 09-23-2006, 05:05 AM   #3
gokulnath
LQ Newbie
 
Registered: Sep 2006
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks for your immediate response.I'll try it out and let u know.
 
Old 09-23-2006, 11:47 AM   #4
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 453

Rep: Reputation: 46
LDAP Schema

-Adding- items to the schema is absolutely possible and easy. It's one reason why LDAP is so great.

Don't drop descriptors (whatever they call the columns in an LDAP table) from the schema and you'll be just fine.
 
Old 09-25-2006, 08:17 AM   #5
gokulnath
LQ Newbie
 
Registered: Sep 2006
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory
I'm not an expert in ldap also, but I think you can create create your own schema file and add it in slapd.conf to be used by your ldap server. Take a look here to see how you can do this.

Regards
Sorry for the delay. According to your statements i can create my own ldap schema.Now tell me whether my plan is right or wrong.

Step1: I'll add my attributes and objectclass in mycomp.schema file.
Step2: Then i'll add this line to slapd.conf file.

include /usr/local/etc/openldap/schema/mycomp.schema

Step3: Restart the ldap service.

(It should not affect my existing ldap setup). will it affect?

Is this steps enough or anything else needed?

Thanks
Gokulnath

Last edited by gokulnath; 09-25-2006 at 08:19 AM.
 
Old 09-25-2006, 08:57 AM   #6
dougnc
Member
 
Registered: Apr 2005
Posts: 236

Rep: Reputation: 31
Do you have windows clients logging into LDAP?
 
Old 09-25-2006, 12:26 PM   #7
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 453

Rep: Reputation: 46
LDAP Addition

Quote:
Originally Posted by gokulnath
Sorry for the delay. According to your statements i can create my own ldap schema.Now tell me whether my plan is right or wrong.

Step1: I'll add my attributes and objectclass in mycomp.schema file.
Step2: Then i'll add this line to slapd.conf file.

include /usr/local/etc/openldap/schema/mycomp.schema

Step3: Restart the ldap service.

(It should not affect my existing ldap setup). will it affect?

Is this steps enough or anything else needed?

Thanks
Gokulnath
Don't be a j*ck*ss about this.
1. Don't mess with a production DB
2. Back up the LDAP DB first.
3. Do the steps you mention above in a test environment.
4. Test the new ldap thoroughly
5. Move changes into production.
 
Old 09-25-2006, 12:33 PM   #8
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 453

Rep: Reputation: 46
OpenLDAP

Quote:
Originally Posted by dougnc
Do you have windows clients logging into LDAP?
Openldap does this already. If you look around you can find win32 binaries of openldap and have a legitimate ldap directory instead of MS's half-@ss implementation.

If you want to create a shared address book that some users can update, you need a LDAP client to do this. There are quite a few of these on sourceforge.

WARNING:
Outlook won't write new contacts into the db. Gnome's win32 flagship mail client won't do it. I don't think Thunderbird does this either. I don't know about KDE's kmail.
 
Old 09-26-2006, 12:12 AM   #9
gokulnath
LQ Newbie
 
Registered: Sep 2006
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by dougnc
Do you have windows clients logging into LDAP?
Yes, i have windows clients also.Is there any problem bcoz of this.
 
  


Reply


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
can I add a new schema to a running ldap server procfs Linux - Software 1 08-15-2006 11:32 PM
LDAP rfc2307bis.schema automount Bikerpete Linux - Networking 0 01-08-2006 06:10 AM
Ldap schema error mesh2005 Linux - Networking 0 11-20-2005 05:16 AM
LDAP schema for proxy server Niceman2005 Linux - Networking 0 01-23-2005 08:58 PM
Partition Schema bmagill Slackware - Installation 3 05-27-2004 01:20 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration