All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jcifs_1.3.3.examples.SidFragment Maven / Gradle / Ivy

Go to download

JCIFS is an Open Source client library that implements the CIFS/SMB networking protocol in 100% Java

The newest version!
import jcifs.smb.*;

public class SidFragment {

    public static void main(String[] argv) throws Exception {
        if (argv.length < 1) {
            System.err.println("usage: SidFragment ");
            return;
        }

        SID domsid = new SID(argv[0]);
        int rid = 1120;
        int count = 150;
        int si;

        SID[] sids = new SID[count];

        for (si = 0; si < sids.length; si++) {
            sids[si] = new SID(domsid, rid++);
        }

        SID.resolveSids("ts0", null, sids);

        for (si = 0; si < sids.length; si++) {
            System.out.println(sids[si].toString());
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy