Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 4th, 2004, 06:42 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default Active Directory - Creating Groups

Hi Experts,

I am using DirectoryServices to create user groups in my application. I am using the following code in my application.

     DirectoryEntry dom = new DirectoryEntry (LDAPPath, UserID, Pwd);
     DirectoryEntry dl = dom.Children.Add("CN=Employees", "group");
     dl.CommitChanges();

However, I am getting the following error

      "A constraint violation occurred."

can anyone tell me what this error is and how to solve this. Is there any better way of doing this?

Thanks in advance,

Regards
Ganesh
__________________
Regards
Ganesh
http://ganeshprof.blogspot.com
Find your solution here...
 
Old October 4th, 2004, 06:43 AM
Friend of Wrox
 
Join Date: Jun 2004
Posts: 449
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to r_ganesh76
Default

Can anyone provide me other samples for creating and listing user groups from LDAP

Regards
Ganesh





Similar Threads
Thread Thread Starter Forum Replies Last Post
get user groups from Active Directory PorcupineRabbit Classic ASP Professional 1 February 6th, 2007 08:09 PM
Active Directory TCSE305 Windows Server 1 November 22nd, 2006 01:26 AM
Active Directory - groups and permissions shanson ASP.NET 2.0 Basics 2 May 17th, 2006 03:20 PM
About Active Directory apalmero VS.NET 2002/2003 1 November 9th, 2003 01:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.