Talk About Network

Google





Software > ADSI General > Re: "The server...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 5324 of 5437
Post > Topic >>

Re: "The server is unwilling to process the request. (Exception from HRESULT: 0x80072035)"

by "Joe Kaplan" <joseph.e.kaplan@[EMAIL PROTECTED] > Jul 14, 2008 at 01:41 PM

Are you sure you aren't accidentally trying to create a proxy for a SID
that 
already exists in ADAM?

Note that you probably will have better results using DirSync rather than 
usnChanged polling or perhaps just using ADAMSync directly instead of 
writing your own thing here. That might not work if there is something 
special about your application where you can't do that, but usually those 
approaches work better.

Joe K.

-- 
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services
Programming"
http://www.directoryprogramming.net
--
<dgendera@[EMAIL PROTECTED]
> wrote in message 
news:dbd7893e-4200-4b62-8c1c-5628e468bd3c@[EMAIL PROTECTED]
've written script using vb.net that will read objects from AD, and
sync them with my ADAM instance.  I'm using the polling mechanism and
pointing always to the same DC, by checking usncreated against
hightestUSN on that DC I will add user/group/wks objects.
This is working fine, however I run into issue with creation some
users (all users are created as class userproxy)
I get following error message:

"The server is unwilling to process the request. (Exception from
HRESULT: 0x80072035)"
If I create the same user as class "user" it works.  I've tried to
remove all additional attributes and only have dn, ObjectSID still get
same error.
The error occurs when I'm trying to do "commit.changes"
snippet from code:
                Dim dom As New DirectoryEntry("LDAP://" & strADAM,
"cn=esdsubman,dc=xx,dc=com", "xxxxxxxx", AuthenticationTypes.None)
                Dim user As DirectoryEntry = dom.Children.Add("CN=" &
strUserNameCN, "userproxy")
                user.Properties("objectSID").Add(GetUserSID(userDN))
                'user.Properties("employeeNumber").Value =
strEmployeeID.ToString
                'user.Properties("displayName").Value =
strDisplayName.ToString
                'user.Properties("co").Value = strCountry.ToString
                'user.Properties("physicalDeliveryOfficeName").Value =
strOffice.ToString
                'user.Properties("telephoneNumber").Value =
strTelephone.ToString

                ' Commit the new user to the directory.
                user.CommitChanges()                 „» When doing this
call the error occurs.

I've managed to create around 100,000 user objects, 100+ groups and
30,000 workstation objects.  The error seems to occur for 10-20 users
(always the same users).  If I compare these users against other users
I cannot see any differences.

Any ideas suggestions are appreciated
 




 3 Posts in Topic:
"The server is unwilling to process the request. (Exception from
dgendera@[EMAIL PROTECTED  2008-07-14 11:26:28 
Re: "The server is unwilling to process the request. (Exception
"Joe Kaplan" &l  2008-07-14 13:41:14 
Re: "The server is unwilling to process the request. (Exception
dgendera@[EMAIL PROTECTED  2008-07-14 23:42:55 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Thu Jan 8 18:56:05 PST 2009.