jCIFS-ext: is anybody using this?

From: Rob (cnei_at_usa.net)
Date: 12/04/04

  • Next message: Brant Hahn: "[junit] Disabling Output"
    Date: 4 Dec 2004 14:02:55 -0800
    
    

    Hi there, my task is very simple: Enumerate Windows Groups and Users
    from Java.

    True, much easier said than done. However jCIFS-ext could make it
    very, very easy to do.

    Using jCIFS-ext, you can get the User Enumeration with 3 lines of code
    (not including setup):

        NtlmPasswordAuthentication auth = new
    NtlmPasswordAuthentication(domain, userid, passwd);
        UserManagement umgt = new UserManagement(ip, auth);
        UserInfo[] uiArray = umgt.netUserEnum(1);

    This works great (though I don't know what the "1" is for).
    Now, when I try the similar methods for enumerating groups:

        GroupManagement gmgt = new GroupManagement(ip, auth);
        GroupInfo[] giArray = gmgt.netGroupEnum(1);

    I get a 0-length giArray when running against a domain client, or a
    "More data is available" exception when running against the domain
    controller.

    The javadocs have no descriptions, there are no examples distributed
    with the package, no support links are listed on sourceforge, and this
    looks to be the first post on jCIFS-ext.

    If anyone is familiar with this package, it'd be great to hear from
    you on this. Thanks!


  • Next message: Brant Hahn: "[junit] Disabling Output"