LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 08: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, 02:12 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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, 04: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, 10:47 AM   #4
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 548

Rep: Reputation: 72
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, 07: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 07:19 AM.
 
Old 09-25-2006, 07: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, 11:26 AM   #7
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 548

Rep: Reputation: 72
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, 11:33 AM   #8
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 548

Rep: Reputation: 72
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-25-2006, 11:12 PM   #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



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 10:32 PM
LDAP rfc2307bis.schema automount Bikerpete Linux - Networking 0 01-08-2006 05:10 AM
Ldap schema error mesh2005 Linux - Networking 0 11-20-2005 04:16 AM
LDAP schema for proxy server Niceman2005 Linux - Networking 0 01-23-2005 07:58 PM
Partition Schema bmagill Slackware - Installation 3 05-27-2004 12:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:21 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