From: Mark W. <mew...@un...> - 2000-09-05 14:30:31
|
It sounds like you have several misconceptions about LDAP. LDAP doesn't use tables, it's not a relational database. Instead it uses entries which are collection of attributes and values. You can think of an entry as a record in a database. Attributes are like fields. There's a special attribute called "objectclass" which defines what attributes are required and which ones are allowed for an individual entry in the server's schema. I would really recommend that you spend some time reading up on LDAP before you try to go much farther. LDAP is not that difficult, but like any technology you must spend some time learning it first. I'd recommend my book (of course :), "Implementing LDAP" as well as Howes, "Understanding and Deploying LDAP Directory Services" and a new one, "Implementing Directory Services" from Archie Reed (haven't read this one yet, so I can't really vouch for it). So the question of "can you create a new table", can mean one of 2 things in an LDAP context. Can you add a new entry? Yes. Assuming that the account your authenticated to the server as has rights to do so & that the new entry matches a valid objectclass schema. The other context is "can I extend the server's schema"? The answer is generally yes, but the particulars will depend upon what type of LDAP server you're using. If your're using openLDAP, you'll have to change the schema with a text editor because it is currently only an LDAP v2 server. If you're using an LDAP v3 server, you can dynamically extend the server's schema. As for changing the base of your LDAP server, without knowing what LDAP server you're running (I'm guess Netscape's because of the default base), it's easiest to just uninstall the software and then reinstall. There are ways to change it 'on the fly', but considering your current lack of LDAP knowledge, I won't go into more detail. Mark On Tue, 5 Sep 2000, murali wrote: > Hai > This is murali. How can change the base value for our local LDAP SERVER > as o=airius.com which is running at my another system on linux in our network > > Please tell the path how to do it, so that i can change the base. > > > And i have another doubt, can we create our own table in the ldap server.(what we do in oracle or sql)If this can we do how can create a table and please tell me the urls where we can find the material on it > > > Please reply asp > with regards and > Bye > g.murali dhar reddy > Software Engineer > RENDEZVOUS ON CHIP (I) PVT.LTD. > VOICE: ph:040-7742606 ( Extn )- 313 > mail to: gm...@tr... > www.trinc.com > > > > > ----- Original Message ----- > From: Mark Wilcox <mew...@un...> > To: murali <gm...@tr...> > Cc: <per...@li...> > Sent: Monday, September 04, 2000 6:59 PM > Subject: Re: (no subject) > > > > > > You set your base to o=airius.com. This is the default base for Netscape's > > Directory server if you use their example directory data. > > > > You need to set this value to whatever the base is for your LDAP server. > > > > Mark > > > > > > On Mon, 4 Sep 2000, murali wrote: > > > > > H ai i am facing some problem regarding LDAP. > > > I am using some sample codes which arwe given in ldap client. > > > I am using select command but it is giving exception message No:32. > > > > > > > > > The number is for wrong name. > > > > > > The server i connected is Baylor.edu and other public ldap servers. > > > > > > Even i downloaded a ldap server for linux and tested it is giving the same > > > > > > error > > > > > > Bye > > > murali > > > email id: gm...@tr... > > > > > > > > > the code i used is:: > > > > > > > > > import netscape.ldap.*; > > > import java.util.*; > > > public class Search1 > > > { > > > > > > public static void main( String[] args ) > > > { > > > > > > LDAPConnection ld = new LDAPConnection(); > > > > > > try > > > { > > > > > > > > > System.out.println("it has established the connection" + ld); > > > ld.connect( "172.16.5.64", 389 ); > > > ld.authenticate(3,null,null); > > > > > > System.out.println("it is after the connection"); > > > Float LDAPVersion = ( Float )ld.getProperty( ld.LDAP_PROPERTY_PROTOCOL ); > > > System.out.println( "Highest supported LDAP protocol version: " + LDAPVersion ); > > > System.out.println( "The default LDAP protocol version used is " + ld.LDAP_VERSION > > > LDAPSearchResults results =ld.search("o=airius.com", LDAPv2.SCOPE_BASE, "(cn=jensen)", null, false ); > > > > > > System.out.println("it is before the while loop"); > > > > > > > > > > > > > > > > > > while ( results.hasMoreElements() ) > > > { > > > System.out.println("it has entrered into the while loop"); > > > LDAPEntry entry = null; > > > entry = results.next(); > > > System.out.println( entry.getDN() ); > > > ld.disconnect(); > > > > > > > > > } > > > > > > } > > > > > > catch( LDAPException e ) > > > { > > > System.out.println( "Error: " + e.toString() ); > > > System.out.println( "Error message: " + e.getLDAPErrorMessage() ); > > > > > > System.exit(1); > > > } > > > System.exit(0); > > > } > > > } > > > > > > > > |