Re: Query LDAP from Linux??

From: Michael Ströder (michael_at_stroeder.com)
Date: 07/14/04


Date: Wed, 14 Jul 2004 23:27:43 +0200

Kevin Queen wrote:
> I have a developer that wants to be able to query AD
> using a Java based Linux app, what to I need to tell him
> to do so that he can get authenticated and query the
> server? He seems to think that all I need to do is find
> out what the RootDN is, what the hell is it then?

He can obtain the search root(s) from attribute namingContexts in RootDSE.

Note that anonymous login is normally not allowed with Active Directory. You
have to explicitly send a bind request with the DN of a domain account.
Maybe that's his problem. This should be no problem with any Java LDAP API
out there.

Ciao, Michael
(using web2ldap on Linux with python-ldap and OpenLDAP client libs against
Active Directory with simple bind, SASL bind via GSSAPI, etc...)



Relevant Pages

  • Re: sql running slow when run from java but runs fine when run from toad
    ... Yet in the query you run from Java, the value is simply 39, no double quotes. ... This also helps to explain why the two statements have different hash values when, except for the bind variable contents, the two queries look like the exact same SQL statement. ... The rest of your bind variable values look the same from both trace files. ...
    (comp.databases.oracle.server)
  • Re: more than a one result set at the same time
    ... Oracle can handle those requests rather efficient, by using bind ... The java approach would be to select all from date_info_table, ... rinsed and dried on the application server before it is ... make a query to fillup List with date, ...
    (comp.databases.oracle.misc)
  • Query LDAP from Linux??
    ... I have a developer that wants to be able to query AD ... using a Java based Linux app, what to I need to tell him ...
    (microsoft.public.windows.server.active_directory)
  • Re: dynamic type checking - a pauline conversion?
    ... to actually write the code in Java. ... Is the query handled ... One of the problems with Java typing is small differences in interfaces ... array iteration, List iteration, and database query result iteration all ...
    (comp.object)
  • RE: Slow response time from Java compared to Query Analyzer
    ... Slow response time from Java compared to Query Analyzer ... Please reply only to the newsgroups. ...
    (microsoft.public.sqlserver.jdbcdriver)