[jcifs] How to fetch users and groups after authenticated?

Carlos Scheidecker scheideckerantunes at gmail.com
Mon Nov 10 17:25:58 GMT 2008


Hello all,

I am new to NTLM.

I wonder if you could give me some pointers on this issue or 
point me to some documentation regarding fetching users and 
groups after authentication is completed.

I wonder how I enumerate users and groups after I successfully 
authenticate to the NTLM server.

Say that I issue the following to authenticate to the NTLM server 
from a simple java client:

public static void main(String[] args) {
		try {
			InetAddress ip = 
InetAddress.getByName("192.168.2.10");

			UniAddress myDomain = new UniAddress(ip);

NtlmPasswordAuthentication auth = new
NtlmPasswordAuthentication("testdomain","user1","passwd1");
			SmbSession.logon(myDomain, auth);
			
		} catch (Exception e) {
			System.out.println("Exception : "+
      e.toString());
		}

OK, if it does not throw an exception, then I am logged in.

How can I get a status flag from the server that I was successfully logged in or
it failed?

Thanks all in advance.



More information about the jcifs mailing list