Re: DSACLS for ADAM permission & ADSI for ADAM authentication
From: Sasi (anonymous_at_discussions.microsoft.com)
Date: 04/16/04
- Next message: Ray: "Active Directory DNS with Two NIC"
- Previous message: Chriss3: "Re: In Place Upgrade of W2k Domain Controller"
- Next in thread: Dmitri Gavrilov [MSFT]: "Re: DSACLS for ADAM permission & ADSI for ADAM authentication"
- Reply: Dmitri Gavrilov [MSFT]: "Re: DSACLS for ADAM permission & ADSI for ADAM authentication"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 16 Apr 2004 13:01:06 -0700
Hello,
Thanks for the information, the command worked but it does not seem to have an effect on the permissions. Acutallly
when I used the command
"dsacls.exe \\localhost:389\ou=company,dc=testdom,dc=com /I:T /G "NT AUTHORITY\SELF":GR".
It says it granted the permission but when I use the ldp tool to authenticate a user which is under the ou=company it authenticate but when I searches for the attributes it bring nothing. Here is the message
***Searching...
ldap_search_s(ld, "DC=testdom,DC=com", 1, "(samaccountname=user*)", attrList, 0, &msg)
Result <0>: (null)
Matched DNs:
Getting 0 entries:
Also I tried the following command to grant an appid "cn=webapp" to be able to only the ginenName, but it not working the way I understood, could you please let me know wheather the command is correct or not??
dsacls.exe \\localhost:389\ou=users,ou=company,DC=testdom,DC=com /N /G "cn=webapp,ou=apps,dc=testdom,dc=com":RP;givenName;
It says it succesfully granted the special permission Read for the object webapp to the property "gvienName", but it seems not working, when I tried to authenticate against the LDAP it authenticate and searches all the users with all the attributes. The WEBAPP is also a memeber of CN=Readers group.
Thanks,
Sasi
----- Dmitri Gavrilov [MSFT] wrote: -----
The simplest way to do this is to add Users group to Readers role. Then each
user will be able to read anything in this partition.
If you want to only allow reading his own object, then you need to:
1) grant LIST_CONTENTS on the container to the user (or better to Users
group)
2) grant READ_PROPERTY on the user object. You can add an inheritable ACE at
the container level granting READ_PROPERTY to NT AUTHORITY\SELF.
What you are missing in your dsacls call is server and port. It should be
something like this:
dsacls.exe \\servername:port\ou=users,ou=app,dc=testdom,dc=com /I:T /G "NT
AUTHORITY\SELF":GR
--
Dmitri Gavrilov
SDE, Active Directory Core
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Sasi" <anonymous@discussions.microsoft.com> wrote in message
news:2C5A777A-9691-4F73-B285-F43EBA92B20F@microsoft.com...
> Hello
>> I was trying to work with AD for authentication and ADAM for application
info, I am able to define proxy objects in the ADAM. Now when I create a
user of inetOrgPerson in ADAM and when I connect to ADAM using the ldp it
authenticates but it does not read its own information, the problem we are
having is when we are using VB ADSI it failing when it tries to authenticate
to itself. I supposed the problem is when it binds it tries to read it own
information for which it does not have permission and so it fails.
>> Now I am trying to grant self read for all the inetOrgPerson and
userProxy object using DSACLs but its not working somehow. Here is the
command i am using for defining the acls..
>> dsacls.exe ou=users,ou=app,dc=testdom,dc=com /G cn=user
test,ou=users,ou=app,dc=testdom,dc=com:GA;;inetOrgPerson
> Or I tried the below also
> dsacls.exe ou=users,ou=app,dc=testdom,dc=com /G cn=user
test,ou=users,ou=app,dc=testdom,dc=com:GA;;userProxy
>> a lot of times it saying "Parameter is incorrect" or "No Sid defined for
the object" or "No Specified file found on server".
>> Could some one give me sample of the dsacls cmds for defining read
permissions for self to inetorperson / userproxy or please let me know if
there is a way to grant default self read when creating inetOrgPerson or
userProxy. Because our application needs the inetOrgPerson or userProxy
should be able to read themselves and the appplication id should be able to
read all the users. So we added the appid to the
cn=readers,cn=roles,dc=testdom,dc=com group and we haven't defined any group
for the inetOrgPerson or userproxy objects.
>> Thanks in Advance,
> Sasi
>
- Next message: Ray: "Active Directory DNS with Two NIC"
- Previous message: Chriss3: "Re: In Place Upgrade of W2k Domain Controller"
- Next in thread: Dmitri Gavrilov [MSFT]: "Re: DSACLS for ADAM permission & ADSI for ADAM authentication"
- Reply: Dmitri Gavrilov [MSFT]: "Re: DSACLS for ADAM permission & ADSI for ADAM authentication"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|