From: murali <gm...@tr...> - 2000-09-05 04:55:02
|
Hai This is murali. How can change the base value for our local LDAP = SERVER as o=3Dairius.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=20 g.murali dhar reddy Software Engineer=20 RENDEZVOUS ON CHIP (I) PVT.LTD. VOICE: ph:040-7742606 ( Extn )- 313 mail to: gm...@tr... www.trinc.com =20 ----- Original Message -----=20 From: Mark Wilcox <mew...@un...> To: murali <gm...@tr...> Cc: <per...@li...> Sent: Monday, September 04, 2000 6:59 PM Subject: Re: (no subject) >=20 > You set your base to o=3Dairius.com. This is the default base for = Netscape's > Directory server if you use their example directory data. >=20 > You need to set this value to whatever the base is for your LDAP = server. >=20 > Mark >=20 >=20 > On Mon, 4 Sep 2000, murali wrote: >=20 > > 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. > >=20 > >=20 > > The number is for wrong name. > >=20 > > The server i connected is Baylor.edu and other public ldap = servers. > >=20 > > Even i downloaded a ldap server for linux and tested it is giving = the same > >=20 > > error > >=20 > > Bye > > murali=20 > > email id: gm...@tr... > >=20 > >=20 > > the code i used is:: > >=20 > >=20 > > import netscape.ldap.*; > > import java.util.*; > > public class Search1 > > { > >=20 > > public static void main( String[] args ) > > { > > =20 > > LDAPConnection ld =3D new LDAPConnection(); > >=20 > > try > > { > >=20 > >=20 > > System.out.println("it has established the connection" + = ld);=20 > > ld.connect( "172.16.5.64", 389 ); > > ld.authenticate(3,null,null); > >=20 > > System.out.println("it is after the connection"); > > Float LDAPVersion =3D ( 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=20 > > LDAPSearchResults results =3Dld.search("o=3Dairius.com", = LDAPv2.SCOPE_BASE, "(cn=3Djensen)", null, false ); > >=20 > > System.out.println("it is before the while loop"); > >=20 > >=20 > >=20 > >=20 > >=20 > > while ( results.hasMoreElements() ) > > { > > System.out.println("it has entrered into the while = loop");=20 > > LDAPEntry entry =3D null; > > entry =3D results.next(); > > System.out.println( entry.getDN() ); > > ld.disconnect(); > >=20 > >=20 > > } > >=20 > > } > > =20 > > catch( LDAPException e ) > > { > > System.out.println( "Error: " + e.toString() ); > > System.out.println( "Error message: " + = e.getLDAPErrorMessage() ); > >=20 > > System.exit(1); > > } > > System.exit(0); > > } > > } > >=20 > >=20 |