On 2/1/07, Elie Ciment <[EMAIL PROTECTED]> wrote:

Aha. Any suggested code to get me started? Say, using JNDI. I don't know
much about LDAP or JNDI; what I do know is that I can access AD through
Java, because I have opened up the LDAPBrowser in Eclipse and can see
everything.


the best place to get a quick start is :
http://java.sun.com/products/jndi/tutorial/

This tutorial is really good, and will allow you to write your first
requests very fast and easily.

My problem is that I am not looking for a browser, but rather for the
functionality of the browser. I want to be able to take an invrentory of the
network based on the entries found in Active Directory - which means, I will
need to provide (within the Web based app I am writing) a view of the
hierarchy/architecture of the Directory and let the administrator choose
exactly which OUs to scan for computers/workstations.


I understand. Anyway, I do think that JNDI is the way to go. JNDI is the
standard LDAP API (not only Ldap, but that's another story), as JDBC is for
DataBase. Any other API will be specific, and the number of people being
able to give you an hand will be less important. You have many mailing lists
where you can post a question about JNDI, only one for ADS, and we are only
a few being able to help you :(

Anything to get me started would really be a big help, with all your
expertise in the matter. You are definitely correct in saying that using a
GUI's undocumented API (or even if it were documented) to try and accomplish
the task of simply querying AD might not be the way to go, but I don't know
exactly what is the way to go.


JNDI Tutorial, trust me. Not that I wan't to dump you, but even ADS is based
on JNDI as an API to send requests to it. LdapStudio is even more
complicated : requests are first converted to DSML, then to an internal
format, then translated to byte[], and sent to the server using a socket.
i'm not sure you want to handle all these dirty tricks, aren't you ?

Thanks for all your help, I appreciate it. And, yes, I do know that this is
all on a volunteer basis; what I meant was that the community (in other
projects and I am sure here as well) is always on hand and really passionate
about the project on which they work. I myself have answered (asked more
than answered) questions posed on various mailing lists. Needless to say, I
do not always have the answers, but I understand that this is not something
you are paid to do - that makes it all the more appreciated.


That's my pleasure !

Emmanuel

Thanks,
EC

On 2/1/07, Emmanuel Lecharny <[EMAIL PROTECTED]> wrote:
>
> oops. I guess I just click on reply...
>
> I don't know... It has worked for me a few minutes ago. The sad point is
> that apacheds-tools is buggy on the nighty build. I just opened an issue
> about it :
> https://issues.apache.org/jira/browse/DIRSERVER-838
>
> On 2/1/07, Elie Ciment < [EMAIL PROTECTED]> wrote:
> >
> > By the way, I just realized - yo replied to me personally, and not the
> > user list.
> >
> > And, once I've got you - I can't seem to download the nightly from
> > iktek - it just hangs for a while. Any ideas?
> >
> > -EC
> >
> > On 2/1/07, Elie Ciment <[EMAIL PROTECTED] > wrote:
> > >
> > > Thanks for your help. I'll check out the others, now, I guess...
> > >
> > > Thanks!
> > >
> > > On 2/1/07, Emmanuel Lecharny < [EMAIL PROTECTED]> wrote:
> > > >
> > > > So, I cannot use LDAPStudio classes for querying AD, and I should
> > > > > use OpenLDAP or JNDI?
> > > >
> > > >
> > > > Well, LdapStudio is meant to be a GUI, not an API, so if you want
> > > > to use its code base to qyuey any ldap server, you will have to go deep 
into
> > > > the code to do it. Of course this is possible, but this is not really 
the
> > > > simplest way to go...
> > > >
> > > > The reason I wanted to use Apache Directory (LDAPStudio) classes
> > > > > is because as an ASF project I know that there was a lot of thought 
put into
> > > > > the design of the code and that there will be an active mailing list 
for
> > > > > support when needed.
> > > >
> > > >
> > > > Sure :) But it was not inended to be used the way you want.
> > > > Anyway, it can be done. Let me find the place in the code where we 
build the
> > > > ldap messages and send them to the server... (will take a little while)
> > > >
> > > > I feel that with all open source projects in the ASF you can turn
> > > > > to them for help and somebody's always there for you.
> > > >
> > > >
> > > > well, that's not exactly how it works :) but basically, you can
> > > > push a mail, and if somebody has an answer, you will get it ... Remember
> > > > that people at apache are all volunteers, and are also pretty busy ;)
> > > >
> > > > In addition, Apache will go through the trouble of finding the
> > > > > right code to use, ie OpenLDAP and JNDI. So, using those classes that 
Apache
> > > > > builds which make the most of the underlying classes - much better 
than a
> > > > > beginner would - I would love to just take a pre-bundled project that 
is
> > > > > easy to use.
> > > >
> > > >
> > > > Not sure that they are easy to use at all... (and I'm not really
> > > > proud of this, as I wrote part of them ...) At some point, we should 
provide
> > > > a kind of API like JLdap is.
> > > >
> > > > Remember that any API has a learning curve, and you won't avoid to
> > > > spend some time on it. Apache won't do this for you :)
> > > >
> > > > Does that make sense?
> > > > >
> > > > > Thanks,
> > > > > EC
> > > > >
> > > > > On 1/31/07, Emmanuel Lecharny <[EMAIL PROTECTED] > wrote:
> > > > > >
> > > > > > Elie Ciment a écrit :
> > > > > >
> > > > > > > Hi,
> > > > > > >
> > > > > > > I am new to the LDAP Studio, and actually cannot find the
> > > > > > link to
> > > > > > > download
> > > > > > > it right now. I currently use / have been using the Eclipse
> > > > > > plugin, which
> > > > > > > now links to directory.apache.org .
> > > > > >
> > > > > > Well, the nighty build is - temporarily - available here :
> > > > > > http://www.iktek.com/index.jsp?rubrique=ads
> > > > > >
> > > > > > This is *not* a release, but a build done every nigth at 2am
> > > > > > UTC.
> > > > > >
> > > > > > The release will be available very soon.
> > > > > >
> > > > > > > A question I have is can I leverage the code for this Studio
> > > > > > without the
> > > > > > > front end - I want to query Active Directory without having
> > > > > > the
> > > > > > > presentation
> > > > > > > handle it, but only the underlying code to incorporate it in
> > > > > > my Struts
> > > > > > > web
> > > > > > > application.
> > > > > >
> > > > > > np at all, but no need to use LdapStudio at all. The best
> > > > > > solution would
> > > > > > be either to use JNDI or (in my mind, much better), the
> > > > > > OpenLdap API for
> > > > > > java ( http://www.openldap.org/jldap/)
> > > > > >
> > > > > > Emmanuel
> > > > > >
> > > > > > >
> > > > > > > Thanks,
> > > > > > > EC
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Cordialement,
> > > > Emmanuel Lécharny
> > > > www.iktek.com
> > >
> > >
> > >
> >
>
>
> --
> Cordialement,
> Emmanuel Lécharny
> www.iktek.com
>




--
Cordialement,
Emmanuel Lécharny
www.iktek.com

Reply via email to