예제 #1
0
    public ArrayList getAcctProps(string user, string pass)
    {
        DirectoryEntry entry     = new DirectoryEntry("LDAP://" + domain, user, pass);
        ArrayList      acctProps = new ArrayList();

        foreach (DirectoryEntry childEntry in entry.Children)
        {
            acctProps.Add(childEntry);
            FsLogger.Append2Log("\n" + childEntry.Name.ToString());
            FsLogger.Append2Log("\n" + childEntry.Path.ToString());
        }
        return(acctProps);
    }
예제 #2
0
    public ArrayList getAttribs()
    {
        DirectoryEntry entry = new DirectoryEntry("LDAP://" + domain);
        ArrayList      props = new ArrayList();

        foreach (string strAttrName in entry.Properties.PropertyNames)
        {
            props.Add(strAttrName);
            FsLogger.Append2Log("\n" + strAttrName);
            FsLogger.Append2Log("\n" + entry.Path.ToString());
        }
        return(props);
    }