Click here to Skip to main content
15,922,427 members
Home / Discussions / C#
   

C#

 
GeneralRe: Extracting numbers from string? Pin
dadofg3-Dec-06 22:59
dadofg3-Dec-06 22:59 
QuestionCoding Tools Pin
Bulky Fellow3-Dec-06 21:22
Bulky Fellow3-Dec-06 21:22 
AnswerRe: Coding Tools Pin
Stefan Troschuetz3-Dec-06 22:02
Stefan Troschuetz3-Dec-06 22:02 
AnswerRe: Coding Tools Pin
Christian Graus3-Dec-06 22:03
protectorChristian Graus3-Dec-06 22:03 
QuestionShifting focus to another application Pin
RainFox3-Dec-06 21:19
RainFox3-Dec-06 21:19 
AnswerRe: Shifting focus to another application Pin
Nader Elshehabi4-Dec-06 0:51
Nader Elshehabi4-Dec-06 0:51 
QuestionWroking with Active directory Pin
sdsdsds@hotmail.com3-Dec-06 21:09
sdsdsds@hotmail.com3-Dec-06 21:09 
QuestionAGAIN Pin
quiteSmart3-Dec-06 21:08
quiteSmart3-Dec-06 21:08 
again and again i am stuck with the active directory issues.

Now i am trying to add a user. I am able to do so but with one big problem.

The problem is that the new user is taking a user name different than what i am giving. IT is taking something like that: "$K51000-JA95P8M1QM23" .

The letters and number changes but the same concept.


I am using this methode to add a user:

<br />
DirectoryEntry entry = new DirectoryEntry("LDAP://mainsrv/OU=" + "ITC Users" +                     ",DC=ITC" + ",DC=local");<br />
<br />
// Create the user and set properties<br />
DirectoryEntry user = entry.Children.Add("cn=" + userName, "user");<br />
                <br />
user.CommitChanges();<br />
<br />
user.Properties["sAMAccountName"].Value = userName;<br />
<br />
user.CommitChanges();<br />


where userName is a string that i define through a textbox


I am adding the rest of the fields in the same concept:
example:

<br />
user.Properties["displayName"].Value = firstName;<br />
user.CommitChanges();<br />



all the other properties of the user different from the userName are being added succesully with no problem.

Any suggestions??

best regrads,

Jamil Abou Khalil
Questionsending alerts from project server to a mobile pc. Pin
rahulpasupuleti3-Dec-06 20:59
rahulpasupuleti3-Dec-06 20:59 
AnswerRe: sending alerts from project server to a mobile pc. Pin
WillemM3-Dec-06 22:22
WillemM3-Dec-06 22:22 
GeneralRe: sending alerts from project server to a mobile pc. Pin
rahulpasupuleti4-Dec-06 3:17
rahulpasupuleti4-Dec-06 3:17 
GeneralRe: sending alerts from project server to a mobile pc. Pin
WillemM4-Dec-06 3:24
WillemM4-Dec-06 3:24 
QuestionConverting to float freezes build Pin
Leslie Sanford3-Dec-06 20:00
Leslie Sanford3-Dec-06 20:00 
AnswerRe: Converting to float freezes build Pin
Leslie Sanford3-Dec-06 20:19
Leslie Sanford3-Dec-06 20:19 
AnswerRe: Converting to float freezes build Pin
Guffa3-Dec-06 21:06
Guffa3-Dec-06 21:06 
GeneralRe: Converting to float freezes build Pin
Leslie Sanford4-Dec-06 6:14
Leslie Sanford4-Dec-06 6:14 
QuestionWeb browser hangs in some systems Pin
madhusri3-Dec-06 18:57
madhusri3-Dec-06 18:57 
QuestionSaving MySQL Connection Object Pin
Tomy14023-Dec-06 16:44
Tomy14023-Dec-06 16:44 
AnswerRe: Saving MySQL Connection Object Pin
Dave Kreskowiak3-Dec-06 18:24
mveDave Kreskowiak3-Dec-06 18:24 
GeneralRe: Saving MySQL Connection Object Pin
Tomy14023-Dec-06 20:50
Tomy14023-Dec-06 20:50 
GeneralRe: Saving MySQL Connection Object Pin
Dave Kreskowiak4-Dec-06 11:52
mveDave Kreskowiak4-Dec-06 11:52 
GeneralRe: Saving MySQL Connection Object Pin
Tomy14024-Dec-06 17:51
Tomy14024-Dec-06 17:51 
GeneralRe: Saving MySQL Connection Object Pin
Dave Kreskowiak5-Dec-06 1:37
mveDave Kreskowiak5-Dec-06 1:37 
QuestionExtending Shortcut Menus Pin
Ovelisax3-Dec-06 15:14
Ovelisax3-Dec-06 15:14 
QuestionHelp on using Help Class Pin
lagumaster3-Dec-06 14:14
lagumaster3-Dec-06 14:14 

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.