views:

102

answers:

2

Hi all,

I'm using a Java program that has to gather info that can be derived from the user's group. How can you get a user's group name from windows? Is it found in a file or is there some method/API for getting it?

Please let me know.

Thanks, jbu

A: 

This forum post Naming and Directory (JNDI) - JNDI, Active Directory and Group Memberships should put you on the right track.

Philip T.
this looks like it gets info from ldap servers...will this do the job for windows groups?
If you are trying to access a windows 2000+ server than yes, Active directory is an LDAP server.
Philip T.
A: 

Just use standard Win32 Network apis.... See win32 api ng news://comp.os.ms-windows.programmer.win32 (FAQ since 1992...)