I'm looking for a way to query the NT Domain to obtain a read only list
of the users on the domain(either local or network). I'm not looking to
authenticate, just for a way to get a list of the current valid accounts
userids. I have briefly looked at JCIFS and JAAS but since I'm not
looking to authenticate, I don't know how approprate those are. Thanks
in advance.
regards,
Geoff
Eric - 02 Nov 2003 02:22 GMT
> I'm looking for a way to query the NT Domain to obtain a read only list
> of the users on the domain(either local or network). I'm not looking to
[quoted text clipped - 6 lines]
>
> Geoff
Neither of those will get you this (currently). The easiest way would
be to write a wrapper around the native NetUserEnum function. A
platform-independent approach would require a client-side implementation
of MSRPC (currently unavailable); specifically, you are looking for the
SamrEnumDomainUsers function (on PIPE\samr).
It's possible that you could get this from an LDAP query to an Active
Directory server, but that's not my area of expertise so I can't tell
you for sure.
Eric