Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / November 2003

Tip: Looking for answers? Try searching our database.

How to query NT Domain

Thread view: 
connerz - 01 Nov 2003 23:03 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
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.