Apache Directory Project - [Connect] Troubleshooting

This is Interesting: Free IT Magazines  
Home > Archive > Apache Directory Project > March 2007 > [Connect] Troubleshooting





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [Connect] Troubleshooting
Ole Ersoy

2007-03-31, 1:11 am

Hmmm...

I tried this code that I found on in the Java connection section
of our documentation:

Hashtable env = new Hashtable();

env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.PROVIDER_URL, "ldap://localhost:389/ou=system");

env.put(Context.SECURITY_PRINCIPAL, "uid=admin,ou=system");
env.put(Context.SECURITY_CREDENTIALS, "secret");
env.put(Context.SECURITY_AUTHENTICATION, "simple");

InitialDirContext ctx = new InitialDirContext(env);

I still get connection refused.

Any ideas on troubleshooting this?
I looked in the logs and they are pretty clean...

Thanks,
- Ole



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com