Click here to Skip to main content
15,888,579 members
Home / Discussions / C#
   

C#

 
QuestionListView Pin
boiDev19-Oct-08 23:25
boiDev19-Oct-08 23:25 
AnswerRe: ListView Pin
Shyam Bharath19-Oct-08 23:31
Shyam Bharath19-Oct-08 23:31 
QuestionHow to get RTC(Real time clock) time using c#? Pin
lovnin19-Oct-08 23:08
lovnin19-Oct-08 23:08 
AnswerRe: How to get RTC(Real time clock) time using c#? Pin
Simon P Stevens19-Oct-08 23:10
Simon P Stevens19-Oct-08 23:10 
GeneralRe: How to get RTC(Real time clock) time using c#? Pin
lovnin19-Oct-08 23:16
lovnin19-Oct-08 23:16 
GeneralRe: How to get RTC(Real time clock) time using c#? Pin
Simon P Stevens19-Oct-08 23:34
Simon P Stevens19-Oct-08 23:34 
QuestionRemove/Uninstall Applications Pin
Starzfighter19-Oct-08 22:54
Starzfighter19-Oct-08 22:54 
QuestionProblem in getting the List of user 's from ADS. Pin
vinay_K19-Oct-08 22:38
vinay_K19-Oct-08 22:38 
Hi..

I need to get the List of all the user Name from Active Directory, i used the following code.
try{
ADEntry = new DirectoryEntry("LDAP://" + Session["DominName"].ToString() + ".net", txtUserName.Text.ToString(), 
txtPassword.Text.ToString(), AuthenticationTypes.Secure);

                nativeObject = ADEntry.NativeObject;
            }
            catch (Exception)
            {
    


            DirectorySearcher mySearcher = null;

           

            mySearcher = new DirectorySearcher(ADEntry);
            mySearcher.SearchRoot = ADEntry;
            mySearcher.Filter = "(&(objectClass=USER))";            
            mySearcher.SearchScope = SearchScope.Subtree;
            mySearcher.PropertiesToLoad.Add("SAMACCOUNTNAME");
            mySearcher.PropertiesToLoad.Add("cn");       
            mySearcher.PropertiesToLoad.Add("mail");           

            SearchResult srh = null;
            srh = mySearcher.FindOne();
            int intSerialNo = 1;

            //SearchResultCollection result = mySearcher.FindAll();



            foreach (SearchResult resEnt in mySearcher.FindAll())
            {    

                resEnt.Properties["SAMACCOUNTNAME"][0].ToString();
                    
                resEnt.Properties["cn"][0].ToString();
                    
                resEnt.Properties["mail"][0].ToString();
                    
            }




But it is listing Max 1000 users details but there are 2000 entries in the ADS under "user" group..<br />
<br />
<br />
Please anyone Help me to get the list of all the 2000 user's list in ADS..<br />
<br />
if there is a limitation for LDAP protocol.. Can any one suggest other protocol, i tried with WINNT, NDS and IIS also..<br />
<br />
<br />

AnswerRe: Problem in getting the List of user 's from ADS. Pin
Mirko198020-Oct-08 0:36
Mirko198020-Oct-08 0:36 
GeneralRe: Problem in getting the List of user 's from ADS. Pin
vinay_K20-Oct-08 2:25
vinay_K20-Oct-08 2:25 
QuestionRichTextBox problem Pin
Pedram Behroozi19-Oct-08 22:07
Pedram Behroozi19-Oct-08 22:07 
AnswerRe: RichTextBox problem [modified] Pin
N a v a n e e t h19-Oct-08 22:22
N a v a n e e t h19-Oct-08 22:22 
GeneralRe: RichTextBox problem Pin
Pedram Behroozi19-Oct-08 22:34
Pedram Behroozi19-Oct-08 22:34 
GeneralRe: RichTextBox problem Pin
N a v a n e e t h19-Oct-08 22:41
N a v a n e e t h19-Oct-08 22:41 
GeneralRe: RichTextBox problem Pin
Pedram Behroozi19-Oct-08 22:49
Pedram Behroozi19-Oct-08 22:49 
GeneralRe: RichTextBox problem Pin
N a v a n e e t h19-Oct-08 23:09
N a v a n e e t h19-Oct-08 23:09 
GeneralRe: RichTextBox problem Pin
Pedram Behroozi19-Oct-08 23:16
Pedram Behroozi19-Oct-08 23:16 
GeneralRe: RichTextBox problem Pin
N a v a n e e t h19-Oct-08 23:25
N a v a n e e t h19-Oct-08 23:25 
GeneralRe: RichTextBox problem Pin
Pedram Behroozi19-Oct-08 23:41
Pedram Behroozi19-Oct-08 23:41 
QuestionHow to Export Large Images to PDF using iTextSharper without Resizing the Image Pin
K V Sekhar19-Oct-08 21:20
K V Sekhar19-Oct-08 21:20 
QuestionWidth of Text And Width Of Report In Form In C# Windows Application Pin
Thaer Hamael19-Oct-08 21:02
Thaer Hamael19-Oct-08 21:02 
QuestionClearing the invocation list of a static event EventHandler [modified] Pin
induur19-Oct-08 20:16
induur19-Oct-08 20:16 
AnswerRe: Clearing the invocation list of a static event EventHandler Pin
N a v a n e e t h19-Oct-08 22:29
N a v a n e e t h19-Oct-08 22:29 
GeneralRe: Clearing the invocation list of a static event EventHandler Pin
induur19-Oct-08 23:12
induur19-Oct-08 23:12 
GeneralRe: Clearing the invocation list of a static event EventHandler Pin
N a v a n e e t h19-Oct-08 23:29
N a v a n e e t h19-Oct-08 23:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.