Click here to Skip to main content
15,887,812 members
Home / Discussions / C#
   

C#

 
GeneralRe: RichTextBox question! Pin
Judah Gabriel Himango21-Apr-05 7:24
sponsorJudah Gabriel Himango21-Apr-05 7:24 
QuestionHow do StreamWriter work? Pin
Snowjim21-Apr-05 2:30
Snowjim21-Apr-05 2:30 
AnswerRe: How do StreamWriter work? Pin
mav.northwind21-Apr-05 3:07
mav.northwind21-Apr-05 3:07 
General[Active Directory] Enumerating Users in group Pin
Jaymz66621-Apr-05 2:12
Jaymz66621-Apr-05 2:12 
GeneralRe: [Active Directory] Enumerating Users in group Pin
Steve Dinn21-Apr-05 3:49
Steve Dinn21-Apr-05 3:49 
GeneralRe: [Active Directory] Enumerating Users in group Pin
Jaymz66621-Apr-05 4:15
Jaymz66621-Apr-05 4:15 
GeneralRe: [Active Directory] Enumerating Users in group Pin
Steve Dinn21-Apr-05 7:53
Steve Dinn21-Apr-05 7:53 
GeneralRe: [Active Directory] Enumerating Users in group Pin
Anonymous22-Apr-05 1:20
Anonymous22-Apr-05 1:20 
Again, Thank you so much. I've got it (almost)working !

But like you said before, I only get one name. Even though I use a foreach-statement.

Here's my code: ("cu4it" is my domain-name")

string eigenstring = "LDAP://cu4it/CN="+strGroup+",CN=Users,DC=Cu4IT,DC=tld";<br />
DirectoryEntry ent = new DirectoryEntry(eigenstring);<br />
<br />
DirectorySearcher mySearcher = new DirectorySearcher(ent);<br />
<br />
SearchResultCollection coll = mySearcher.FindAll();<br />
foreach (SearchResult rs in coll)<br />
{<br />
  ResultPropertyCollection resultPropColl = rs.Properties;<br />
  foreach( Object memberColl in resultPropColl["member"])<br />
  {<br />
    DirectoryEntry gpMemberEntry = new DirectoryEntry("LDAP://cu4it/"+ <br />
    memberColl);<br />
    System.DirectoryServices.PropertyCollection userProps =   <br />
    gpMemberEntry.Properties;<br />
    object obVal = userProps["sAMAccountName"].Value;<br />
    if (null != obVal)<br />
    {<br />
     slet.Add(obVal.ToString());<br />
    }<br />
  }<br />
}


What's your tip/trick to list all subscribed users to a group?

Greetingz
Generalerror in using matlab Pin
hediii21-Apr-05 1:15
hediii21-Apr-05 1:15 
GeneralMethodInfo.Invoke urgent help please Pin
hasansheik21-Apr-05 1:13
hasansheik21-Apr-05 1:13 
GeneralRe: MethodInfo.Invoke urgent help please Pin
leppie21-Apr-05 1:32
leppie21-Apr-05 1:32 
GeneralMethodInfo.Invoke urgent help please Pin
hasansheik21-Apr-05 1:13
hasansheik21-Apr-05 1:13 
QuestionWhich one is faster - Static function calls or If else? Pin
abcxyz8221-Apr-05 0:47
abcxyz8221-Apr-05 0:47 
AnswerRe: Which one is faster - Static function calls or If else? Pin
leppie21-Apr-05 0:51
leppie21-Apr-05 0:51 
GeneralRe: Which one is faster - Static function calls or If else? Pin
abcxyz8221-Apr-05 1:08
abcxyz8221-Apr-05 1:08 
GeneralRe: Which one is faster - Static function calls or If else? Pin
leppie21-Apr-05 1:39
leppie21-Apr-05 1:39 
AnswerRe: Which one is faster - Static function calls or If else? Pin
Ashok Dhamija21-Apr-05 1:50
Ashok Dhamija21-Apr-05 1:50 
GeneralRe: Which one is faster - Static function calls or If else? Pin
Dave Kreskowiak21-Apr-05 2:38
mveDave Kreskowiak21-Apr-05 2:38 
GeneralRe: Which one is faster - Static function calls or If else? Pin
Ashok Dhamija21-Apr-05 18:57
Ashok Dhamija21-Apr-05 18:57 
GeneralRe: Which one is faster - Static function calls or If else? Pin
Dave Kreskowiak22-Apr-05 1:11
mveDave Kreskowiak22-Apr-05 1:11 
GeneralRe: Which one is faster - Static function calls or If else? Pin
Dave Kreskowiak22-Apr-05 9:16
mveDave Kreskowiak22-Apr-05 9:16 
GeneralRe: Which one is faster - Static function calls or If else? Pin
leppie21-Apr-05 6:18
leppie21-Apr-05 6:18 
GeneralRe: Which one is faster - Static function calls or If else? Pin
Ashok Dhamija21-Apr-05 18:19
Ashok Dhamija21-Apr-05 18:19 
AnswerRe: Which one is faster - Static function calls or If else? Pin
Tom Larsen21-Apr-05 5:23
Tom Larsen21-Apr-05 5:23 
GeneralPlease help.... Pin
KORCARI21-Apr-05 0:42
KORCARI21-Apr-05 0:42 

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.