PC Review


Reply
Thread Tools Rate Thread

Create new member in SiteServer using Directory Services

 
 
=?Utf-8?B?TWljaGFlbCBGb3N0ZXI=?=
Guest
Posts: n/a
 
      18th May 2005
We currently have an existing asp site which integrates with SiteServer. We
are now looking at rebuilding the site in .NET, but one of our limitations is
that we must continue to use site server as our member storage facility.

We are attempting to use DirectoryServices to connect to SiteServer to
maintain our member base. I have no difficulties in retrieving existing
members, or updating existing members, but I am having difficulty in creating
a new member.

When I attempt to create a new member, it is not storing the member in
SiteServer. The code that I am using is below:

DirectoryEntry ldapConnObj = null;
DirectoryEntry ldapNewUser = null;
PropertyCollection ldapProperties = null;
string ldapConnection = "";
string userName = "testuser";

try
{
ldapConnection = "LDAP://xxx:xxx/o=xxx/ou=xxx";

ldapConnObj = new DirectoryEntry(ldapConnection);
ldapNewUser = ldapConnObj.Children.Add("cn=" + userName, "member");
ldapConnObj.CommitChanges();
}
catch (System.Exception e)
{
Console.Writeln(e.Message);
}

All of the code works fine, but when I attempt to retrieve the user, they
cannot be found in SiteServer. Also when I look at the Properties member of
the ldapNewUser object, it is empty. The schemaClassName property is set to
"member" and the schemaEntry property is set to
"LDAP://xxx:xxx/schema/member".

I am wondering if there is some properties that I need to set before I call
CommitChanges for the user to be commited to SiteServer? Is there anything
that I am doing wrong here?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Workstation a member of an Active Directory Domain AND a Novell NDS directory? William Fields Windows XP General 1 26th Sep 2006 07:57 PM
C# Cookie SITESERVER Problem Jimmy Microsoft ASP .NET 0 30th Jan 2006 03:08 AM
Unable to create new users using Directory services in Windows 200 =?Utf-8?B?U2l2YXJhbWFuLlM=?= Microsoft ASP .NET 1 20th Jan 2005 08:02 AM
Unable to start directory services; using directory recovery conso =?Utf-8?B?SnVzdGluIEFsbGVu?= Microsoft Windows 2000 Active Directory 0 8th Sep 2004 12:33 AM
Passport Member Services Peggy Windows XP Messenger 1 29th Oct 2003 02:10 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:08 AM.