directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r153371 - incubator/directory/apacheds/trunk/xdocs/users/jndi.xml
Date Fri, 11 Feb 2005 07:23:11 GMT
Author: erodriguez
Date: Thu Feb 10 23:23:10 2005
New Revision: 153371

URL: http://svn.apache.org/viewcvs?view=rev&rev=153371
Log:
Fixed:
o  No Hashtable.setProperty(), changed to Hashtable.put()
o  Duplicated SECURITY_PRINCIPAL


Modified:
    incubator/directory/apacheds/trunk/xdocs/users/jndi.xml

Modified: incubator/directory/apacheds/trunk/xdocs/users/jndi.xml
URL: http://svn.apache.org/viewcvs/incubator/directory/apacheds/trunk/xdocs/users/jndi.xml?view=diff&r1=153370&r2=153371
==============================================================================
--- incubator/directory/apacheds/trunk/xdocs/users/jndi.xml (original)
+++ incubator/directory/apacheds/trunk/xdocs/users/jndi.xml Thu Feb 10 23:23:10 2005
@@ -175,8 +175,8 @@
 
 <source>
 Hashtable env = new Hashtable();
-env.setProperty( Context.PROVIDER_URL, "ou=system" );
-env.setProperty( Context.INITIAL_CONTEXT_FACTORY, "org.apache.ldap.server.jndi.ServerContextFactory"
);
+env.put( Context.PROVIDER_URL, "ou=system" );
+env.put( Context.INITIAL_CONTEXT_FACTORY, "org.apache.ldap.server.jndi.ServerContextFactory"
);
 InitialDirContext ctx = new InitialDirContext( env );
 </source>
 
@@ -203,17 +203,16 @@
 Hashtable env = new Hashtable();
 
 // Standard JNDI properties
-env.setProperty( Context.PROVIDER_URL, "ou=system" );
-env.setProperty( Context.INITIAL_CONTEXT_FACTORY, "org.apache.ldap.server.jndi.ServerContextFactory"
);
-env.setProperty( Context.SECURITY_PRINCIPAL, "uid=admin,ou=system" );
-env.setProperty( Context.SECURITY_CREDENTIALS, "secret" );
-env.setProperty( Context.SECURITY_PRINCIPAL, "uid=admin,ou=system" );
+env.put( Context.PROVIDER_URL, "ou=system" );
+env.put( Context.INITIAL_CONTEXT_FACTORY, "org.apache.ldap.server.jndi.ServerContextFactory"
);
+env.put( Context.SECURITY_PRINCIPAL, "uid=admin,ou=system" );
+env.put( Context.SECURITY_CREDENTIALS, "secret" );
 
 // Eve specifice JNDI properties
-env.setProperty( EnvKeys.WKDIR, "/var/ldap" );
-env.setProperty( EnvKeys.DISABLE_ANONYMOUS, "true" );
-env.setProperty( EnvKeys.LDAP_PORT, "10389" );
-env.setProperty( EnvKeys.PARTITIONS, "apache" );
+env.put( EnvKeys.WKDIR, "/var/ldap" );
+env.put( EnvKeys.DISABLE_ANONYMOUS, "true" );
+env.put( EnvKeys.LDAP_PORT, "10389" );
+env.put( EnvKeys.PARTITIONS, "apache" );
 
 // Setup new partition for Apache
 BasicAttributes attrs = new BasicAttributes( true );



Mime
View raw message