470,591 Members | 1,487 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,591 developers. It's quick & easy.

Add user from other domain to domain local group

Hi all,

I'm trying to add a user from another domain (domain trust and rights are
there) to a group in our domain. It's a domain local security group. I get the
following errors:

The server is can't process the request. HRESULT: 0x80072035 or
The object cannot be found on the server HRESULT: 0x80072030 depending on what
code I use.
I've read that the 8007 error code says it's a AD problem. That doesn't help
me though.

My code for error #1:

'strLDAPDomain = name of the domain; i.e. "global.intern"
'the DN is the distinguishedName property of the user object;
“CN=…,OU=…,OU=…,DC=global,DC=intern”
'DE is the group object of the group in our domain

strUser="LDAP://" & strLDAPDomain & "/" & item.Cells("DN").Value
DE.Properties("member").Add(strUser)
DE.CommitChanges()
DE.Close()

Code for error #2:

"LDAP://global.intern/<SID=....>"
'DE is the group object of the group in our domain

strUser="LDAP://global.intern/<SID=....>"
DE.Properties("member").Add(strUser)
DE.CommitChanges()
DE.Close()
Adding a user from our domain works with the code no problems.
Does anyone have any ideas???
Regards

Uli Netzer

Sep 16 '08 #1
0 1470

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Sameh Ahmed | last post: by
8 posts views Thread by Oliver Rainer | last post: by
5 posts views Thread by Rocky | last post: by
5 posts views Thread by Rocky | last post: by
2 posts views Thread by Fox1977 | last post: by
4 posts views Thread by =?Utf-8?B?QXZhRGV2?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.