Click here to Skip to main content
15,894,896 members
Home / Discussions / C#
   

C#

 
AnswerRe: Directory.GetDirectories/ GetFiles Exception Pin
Luc Pattyn27-Feb-09 6:55
sitebuilderLuc Pattyn27-Feb-09 6:55 
GeneralRe: Directory.GetDirectories/ GetFiles Exception Pin
mirko8627-Feb-09 7:09
mirko8627-Feb-09 7:09 
AnswerRe: Directory.GetDirectories/ GetFiles Exception Pin
Luc Pattyn27-Feb-09 7:12
sitebuilderLuc Pattyn27-Feb-09 7:12 
QuestionUsing Windows Live Maps Pin
cdpace27-Feb-09 5:05
cdpace27-Feb-09 5:05 
AnswerRe: Using Windows Live Maps Pin
EliottA27-Feb-09 5:06
EliottA27-Feb-09 5:06 
GeneralRe: Using Windows Live Maps Pin
cdpace27-Feb-09 5:15
cdpace27-Feb-09 5:15 
QuestionAdd Active Directory User to Local Group Pin
svh198527-Feb-09 4:56
svh198527-Feb-09 4:56 
AnswerRe: Add Active Directory User to Local Group Pin
svh198527-Feb-09 6:04
svh198527-Feb-09 6:04 
i Found this code on CodeProject:

public void AddToGroup(string userDn, string groupDn)
{
    try
    {
        DirectoryEntry dirEntry = new DirectoryEntry("LDAP://" + groupDn);
        dirEntry.Properties["member"].Add(userDn);
        dirEntry.CommitChanges();
        dirEntry.Close();
    }
    catch (System.DirectoryServices.DirectoryServicesCOMException E)
    {
        //doSomething with E.Message.ToString();

    }
}


But can anyone show me a sample LDAP String , UserDn String and a GroupDn String?

Thanks!
GeneralRe: Add Active Directory User to Local Group Pin
lane0p23-Mar-09 6:28
lane0p23-Mar-09 6:28 
QuestionConverting an Octet string into a string Pin
lane0p227-Feb-09 4:52
lane0p227-Feb-09 4:52 
AnswerRe: Converting an Octet string into a string Pin
Curtis Schlak.27-Feb-09 6:10
Curtis Schlak.27-Feb-09 6:10 
GeneralRe: Converting an Octet string into a string Pin
lane0p227-Feb-09 10:39
lane0p227-Feb-09 10:39 
GeneralRe: Converting an Octet string into a string Pin
Curtis Schlak.27-Feb-09 11:39
Curtis Schlak.27-Feb-09 11:39 
GeneralRe: Converting an Octet string into a string Pin
lane0p23-Mar-09 6:24
lane0p23-Mar-09 6:24 
AnswerRe: Converting an Octet string into a string Pin
Luc Pattyn27-Feb-09 6:24
sitebuilderLuc Pattyn27-Feb-09 6:24 
Questionhow can i call this method or function in c# ? Pin
yassir hannoun27-Feb-09 4:48
yassir hannoun27-Feb-09 4:48 
AnswerRe: how can i call this method or function in c# ? urgent!! Pin
Deresen27-Feb-09 4:59
Deresen27-Feb-09 4:59 
GeneralRe: how can i call this method or function in c# ?! Pin
yassir hannoun27-Feb-09 5:09
yassir hannoun27-Feb-09 5:09 
GeneralRe: how can i call this method or function in c# ?! Pin
Deresen27-Feb-09 5:18
Deresen27-Feb-09 5:18 
GeneralRe: how can i call this method or function in c# ?! Pin
yassir hannoun27-Feb-09 6:15
yassir hannoun27-Feb-09 6:15 
AnswerThe easy way Pin
Ennis Ray Lynch, Jr.27-Feb-09 6:02
Ennis Ray Lynch, Jr.27-Feb-09 6:02 
GeneralRe: The easy way Pin
yassir hannoun27-Feb-09 6:17
yassir hannoun27-Feb-09 6:17 
QuestionReduce the resolution of a PDF Pin
abbd27-Feb-09 4:05
abbd27-Feb-09 4:05 
RantRe: Reduce the resolution of a PDF Pin
Curtis Schlak.27-Feb-09 4:08
Curtis Schlak.27-Feb-09 4:08 
Question[sound recording using C#] anyone help me? [modified] Pin
pavelnaru27-Feb-09 3:48
pavelnaru27-Feb-09 3:48 

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.