Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Thu, 05 Jan 2006 18:34:10 -0800,    group: microsoft.public.platformsdk.adsi        back       


How to check if an attribute is modifiable by the logged in user   
In VB how can I check if a AD attribute is modifiable by the logged in user?

Thanks.
Saqib Ali
http://www.xml-dev.com/blog/
date: Thu, 05 Jan 2006 18:34:10 -0800   author:   Saqib Ali

Re: How to check if an attribute is modifiable by the logged in user   
Get the allowedAttributesEffective attribute when bound as the logged in 
user and check to see if the attribute in question is in the array that is 
returned.  In VB.NET, you use RefreshCache(New String() 
{"allowedAttributesEffective"}) to load the property and in VB you use 
GetInfoEx.

Joe K.

"Saqib Ali"  wrote in message 
news:%23QTWRsmEGHA.3000@TK2MSFTNGP14.phx.gbl...
> In VB how can I check if a AD attribute is modifiable by the logged in 
> user?
>
> Thanks.
> Saqib Ali
> http://www.xml-dev.com/blog/
date: Thu, 5 Jan 2006 20:57:44 -0600   author:   Joe Kaplan \(MVP - ADSI\)

Re: How to check if an attribute is modifiable by the logged in user   
Joe Kaplan (MVP - ADSI) wrote:
> Get the allowedAttributesEffective attribute when bound as the logged in 
> user and check to see if the attribute in question is in the array that is 
> returned.  In VB.NET, you use RefreshCache(New String() 
> {"allowedAttributesEffective"}) to load the property and in VB you use 
> GetInfoEx.

Hi Joe,

Thanks for the response. However the problem with 
"allowedAttributesEffective" is that it only returns attributes that are 
currently set.

We are adding new attributes to the schema. So most objects in our AD 
these custom attributes are not set.

So "allowedAttributesEffective" will not work for us. :-(


Thanks.
Saqib Ali
http://www.xml-dev.com/blog/
date: Fri, 06 Jan 2006 09:13:17 -0800   author:   Saqib Ali

Re: How to check if an attribute is modifiable by the logged in user   
When I check allowedAttributesEffective, I get the complete list of 
attributes I can modify, regardless of whether they are set or not.  If the 
attributes are not yet added to the schema, that would be different, but 
otherwise it works fine.

Your alternative is not pretty as you would need to try to digest the 
security descriptor directly.  This is quite hard to do without making a 
mistake.  I would not even attempt it.

Joe K.

"Saqib Ali"  wrote in message 
news:OQVviXuEGHA.2292@tk2msftngp13.phx.gbl...
>
> Hi Joe,
>
> Thanks for the response. However the problem with 
> "allowedAttributesEffective" is that it only returns attributes that are 
> currently set.
>
> We are adding new attributes to the schema. So most objects in our AD 
> these custom attributes are not set.
>
> So "allowedAttributesEffective" will not work for us. :-(
>
>
> Thanks.
> Saqib Ali
> http://www.xml-dev.com/blog/
date: Fri, 6 Jan 2006 12:15:43 -0600   author:   Joe Kaplan \(MVP - ADSI\)

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us