exchangefreaks.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AD/Exchange: "SELF" is not displayed!

 
Post new topic   Reply to topic    exchangefreaks.com Forum Index -> MS Exchange Applications
Author Message
Tyampoo



Joined: 07 Feb 2008
Posts: 2

PostPosted: Thu Feb 07, 2008 12:56 pm    Post subject: AD/Exchange: "SELF" is not displayed! Reply with quote

This is what I did:
If Not flag Then 'SELF is not found
Set ace = CreateObject ("AccessControlEntry")
ace.Trustee = "SELF"
ace.AccessMask = RIGHT_DS_SEND_AS Or RIGHT_DS_READ Or
RIGHT_DS_TAKE_OWNERSHIP Or RIGHT_DS_MAILBOX_OWNER
ace.AceType = ADS_ACETYPE_ACCESS_ALLOWED
ace.AceFlags = ADS_ACEFLAG_INHERIT_ACE
dacl.AddAce ace

'set back information
oSecurityDescriptor.DiscretionaryAcl = dacl
UserObject.Put "msExchMailboxSecurityDescriptor", oSecurityDescriptor
UserObject.SetInfo
WScript.Echo "Done"
End If

Situation:
If I run the script again for same user it shows that "SELF" is added.

Problem:
If I go thru GUI, "SELF" is not shown for the user.

Any suggestion/help is appreciated.

Thanks.
--
Tyampoo

Archived from group: microsoft>public>exchange>applications
Back to top
View user's profile Send private message
John Fullbright



Joined: 05 Aug 2007
Posts: 365

PostPosted: Thu Feb 07, 2008 9:21 pm    Post subject: Re: AD/Exchange: "SELF" is not displayed! Reply with quote

What is eactly is it you're trying to do? SELF is a sort of programmatic
shortcut. A placeholder as it were that is placed on a mail enabled object
when it's created. After the first access, permissions are propagated and
it get's replaced bu the actual user object. I don't understand why you
would want to stick self back on mailboxes that have already been instanced.


"Tyampoo" wrote in message @microsoft.com...
> This is what I did:
> If Not flag Then 'SELF is not found
> Set ace = CreateObject ("AccessControlEntry")
> ace.Trustee = "SELF"
> ace.AccessMask = RIGHT_DS_SEND_AS Or RIGHT_DS_READ Or
> RIGHT_DS_TAKE_OWNERSHIP Or RIGHT_DS_MAILBOX_OWNER
> ace.AceType = ADS_ACETYPE_ACCESS_ALLOWED
> ace.AceFlags = ADS_ACEFLAG_INHERIT_ACE
> dacl.AddAce ace
>
> 'set back information
> oSecurityDescriptor.DiscretionaryAcl = dacl
> UserObject.Put "msExchMailboxSecurityDescriptor", oSecurityDescriptor
> UserObject.SetInfo
> WScript.Echo "Done"
> End If
>
> Situation:
> If I run the script again for same user it shows that "SELF" is added.
>
> Problem:
> If I go thru GUI, "SELF" is not shown for the user.
>
> Any suggestion/help is appreciated.
>
> Thanks.
> --
> Tyampoo
Back to top
View user's profile Send private message
Tyampoo



Joined: 07 Feb 2008
Posts: 2

PostPosted: Fri Feb 08, 2008 11:42 am    Post subject: Re: AD/Exchange: "SELF" is not displayed! Reply with quote

For some reason, for some user there ain't SELF so I have to check that it is
present and set AccessMask to 131079. I also tried to put "NT
AUTHORITY\SELF"; if I check programatically it shows but it does not show in
GUI.
--
Tyampoo


"John Fullbright" wrote:

> What is eactly is it you're trying to do? SELF is a sort of programmatic
> shortcut. A placeholder as it were that is placed on a mail enabled object
> when it's created. After the first access, permissions are propagated and
> it get's replaced bu the actual user object. I don't understand why you
> would want to stick self back on mailboxes that have already been instanced.
>
>
> "Tyampoo" wrote in message
> @microsoft.com...
> > This is what I did:
> > If Not flag Then 'SELF is not found
> > Set ace = CreateObject ("AccessControlEntry")
> > ace.Trustee = "SELF"
> > ace.AccessMask = RIGHT_DS_SEND_AS Or RIGHT_DS_READ Or
> > RIGHT_DS_TAKE_OWNERSHIP Or RIGHT_DS_MAILBOX_OWNER
> > ace.AceType = ADS_ACETYPE_ACCESS_ALLOWED
> > ace.AceFlags = ADS_ACEFLAG_INHERIT_ACE
> > dacl.AddAce ace
> >
> > 'set back information
> > oSecurityDescriptor.DiscretionaryAcl = dacl
> > UserObject.Put "msExchMailboxSecurityDescriptor", oSecurityDescriptor
> > UserObject.SetInfo
> > WScript.Echo "Done"
> > End If
> >
> > Situation:
> > If I run the script again for same user it shows that "SELF" is added.
> >
> > Problem:
> > If I go thru GUI, "SELF" is not shown for the user.
> >
> > Any suggestion/help is appreciated.
> >
> > Thanks.
> > --
> > Tyampoo
>
>
>
Back to top
View user's profile Send private message
John Fullbright



Joined: 05 Aug 2007
Posts: 365

PostPosted: Fri Feb 08, 2008 3:43 pm    Post subject: Re: AD/Exchange: "SELF" is not displayed! Reply with quote

"For some reason, for some user there ain't SELF "

http://support.microsoft.com/kb/272153/en-us
http://support.microsoft.com/kb/304935/en-us

1. It's not a problem as long as the actual security descriptor for the
user has rights.
2. The process you are attempting to use only works if you set the
attribute before the mailbox is created.


"Tyampoo" wrote in message @microsoft.com...
> For some reason, for some user there ain't SELF so I have to check that it
> is
> present and set AccessMask to 131079. I also tried to put "NT
> AUTHORITY\SELF"; if I check programatically it shows but it does not show
> in
> GUI.
> --
> Tyampoo
>
>
> "John Fullbright" wrote:
>
>> What is eactly is it you're trying to do? SELF is a sort of programmatic
>> shortcut. A placeholder as it were that is placed on a mail enabled
>> object
>> when it's created. After the first access, permissions are propagated
>> and
>> it get's replaced bu the actual user object. I don't understand why you
>> would want to stick self back on mailboxes that have already been
>> instanced.
>>
>>
>> "Tyampoo" wrote in message
>> @microsoft.com...
>> > This is what I did:
>> > If Not flag Then 'SELF is not found
>> > Set ace = CreateObject ("AccessControlEntry")
>> > ace.Trustee = "SELF"
>> > ace.AccessMask = RIGHT_DS_SEND_AS Or RIGHT_DS_READ Or
>> > RIGHT_DS_TAKE_OWNERSHIP Or RIGHT_DS_MAILBOX_OWNER
>> > ace.AceType = ADS_ACETYPE_ACCESS_ALLOWED
>> > ace.AceFlags = ADS_ACEFLAG_INHERIT_ACE
>> > dacl.AddAce ace
>> >
>> > 'set back information
>> > oSecurityDescriptor.DiscretionaryAcl = dacl
>> > UserObject.Put "msExchMailboxSecurityDescriptor", oSecurityDescriptor
>> > UserObject.SetInfo
>> > WScript.Echo "Done"
>> > End If
>> >
>> > Situation:
>> > If I run the script again for same user it shows that "SELF" is added.
>> >
>> > Problem:
>> > If I go thru GUI, "SELF" is not shown for the user.
>> >
>> > Any suggestion/help is appreciated.
>> >
>> > Thanks.
>> > --
>> > Tyampoo
>>
>>
>>

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    exchangefreaks.com Forum Index -> MS Exchange Applications All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group