jcifs_1.3.3.examples.SidLookup Maven / Gradle / Ivy
import jcifs.smb.*;
public class SidLookup {
public static void main(String[] argv) throws Exception {
if (argv.length < 1) {
System.err.println("usage: SidLookup S-1-5-21-1496946806-2192648263-3843101252");
return;
}
SID sid = new SID(argv[0]);
sid.resolve("ts0", null);
System.out.println(" toString: " + sid.toString());
System.out.println(" toSidString: " + sid.toDisplayString());
System.out.println(" getType: " + sid.getType());
System.out.println(" getTypeText: " + sid.getTypeText());
System.out.println(" getDomainName: " + sid.getDomainName());
System.out.println("getAccountName: " + sid.getAccountName());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy