Esempio n. 1
0
        public void CallbackMethod(IAsyncResult ar)
        {
            AsyncResult       result = (AsyncResult)ar;
            AsyncMethodCaller caller = (AsyncMethodCaller)result.AsyncDelegate;

            _ldapConnectionUsers = caller.EndInvoke(result);
            string distinguishedUserName = LdapHelper.GetCurrentUser(_ldapConnectionUsers, currentDomain);

            LdapHelper.SetLDAPConnection(_ldapConnectionUsers);
            LdapHelper.GetLdapGroupMembers("RG CN BSCE ALL");
            //LdapHelper.GetLdapGroupMembers("RG IN SL Siemens Learning Manager");
            //LdapHelper.GetLdapGroupMembers("RG IN STS BLR Bangalore Group2");
            // LdapHelper.GetLdapGroupMembers("RG IN STS SPIRIDON SAP USERS");
            //LdapHelper.GetLdapGroupMembers("DF FA SE DS FTH BR (IMD)");
            //Get parent groups
            SearchRequest searchRequest = GetSearchQuery(distinguishedUserName);


            GetGroups(searchRequest);
        }