Page 2 of 2 <12
Topic Options
#75693 - 2003-07-10 10:24 AM Re: Creating mailbox in Exchange 5.5
Raceeend Offline
Starting to like KiXtart

Registered: 2002-05-09
Posts: 129
Loc: The Netherlands
This view can be set in Tools --> options --> Permissions tab --> Enabling "Show permissions page for all object"

The NT account is set as Primary Windows NT Account on the General Tab but that is done when creating the mailbox: $mailBox.Put("Assoc-NT-Account", $sid)

But if there are no permissions set opening the mailbox can't be done :-(
_________________________
regards, Martijn

Top
#75694 - 2003-07-11 11:02 AM Re: Creating mailbox in Exchange 5.5
Raceeend Offline
Starting to like KiXtart

Registered: 2002-05-09
Posts: 129
Loc: The Netherlands
Found an example on how to set the NT-Security-Descriptor but it is in Visual Basic.Net Can someone help me translate it?

code:
Dim usr As New DirectoryEntry("LDAP://CN=My User Name,OU=Marketing,DC=fabrikam,DC=com")
Dim newAce = New AccessControlEntryClass()
Dim usrSD As SecurityDescriptor = CType(usr.Properties("ntSecurityDescriptor").Value, SecurityDescriptor)
Dim usrAcl As AccessControlList = CType(usrSD.DiscretionaryAcl, AccessControlList)
newAce.Trustee = "AliceW"
newAce.AccessMask = - 1
newAce.AceType = 0
usrAcl.AddAce(newAce)
usrSD.DiscretionaryAcl = usrAcl
usr.Properties("ntSecurityDescriptor").Value = usrSD
usr.CommitChanges()



[ 11. July 2003, 11:02: Message edited by: Raceeend ]
_________________________
regards, Martijn

Top
#75695 - 2003-07-11 11:12 AM Re: Creating mailbox in Exchange 5.5
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22343
Loc: OK
can check more on it.
anyway, is this supposed to support older systems?
I mean, it's .Net so it's stuff can also be server 2k3 related.
_________________________
!

download KiXnet

Top
#75696 - 2004-01-12 12:19 PM Re: Creating mailbox in Exchange 5.5
mima Offline
Hey THIS is FUN

Registered: 2002-01-25
Posts: 217
Loc: Jönköping, Sweden
Hi
Found this old post, and want to do a similar thing.

I would like to change the NT Primary account for a mailbox to another user. Its Exchange 5.5 + sp4 on W2k.

Any nice code for this ?

/Mima

Top
#75697 - 2004-01-12 03:30 PM Re: Creating mailbox in Exchange 5.5
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11162
Loc: Boston, MA, USA
See for example http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadsi/html/msdn_adsiexch.asp to get you started (not ).
_________________________
There are two types of vessels, submarines and targets.

Top
#75698 - 2004-01-12 03:53 PM Re: Creating mailbox in Exchange 5.5
mima Offline
Hey THIS is FUN

Registered: 2002-01-25
Posts: 217
Loc: Jönköping, Sweden
Hi Sealeopard

I read on MS with the following quote:

LDAP name = Assoc-NT-Account / The primary NT account associated with this Mailbox

Quote:

Limitations of ADSI
ADSI cannot yet manipulate Access Control Lists (ACLs), which contain security information about which user has rights on a certain object. It cannot get the Windows NT Security Identifier (SID), the binary representation of a users account name, and thus cannot set the bits necessary to create the users rights. Thus developers cannot create a functional Mailbox object completely with ADSI, since a mailbox object requires the NT account SID in the Assoc-NT-Account attribute as well as the correct security rights on the mailbox object in the NT-Security-Descriptor attribute. The capability to manipulate ACLs is expected in a future release.






So it seems that it is not possibly to change the NT account with a script.

/mima

Top
#75699 - 2004-01-12 06:12 PM Re: Creating mailbox in Exchange 5.5
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11162
Loc: Boston, MA, USA
Yes, that is correct.
_________________________
There are two types of vessels, submarines and targets.

Top
#75700 - 2004-01-13 01:10 AM Re: Creating mailbox in Exchange 5.5
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22343
Loc: OK
nah, shouldn't it work with CSV file that has updated fields...
IIRC, admin.exe allows updating of info...
_________________________
!

download KiXnet

Top
#75701 - 2004-05-07 10:43 AM Re: Creating mailbox in Exchange 5.5
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22343
Loc: OK
hey...
was checking on this myself once again and started wondering, is there anything new to this?
_________________________
!

download KiXnet

Top
#75702 - 2004-05-10 02:38 PM Re: Creating mailbox in Exchange 5.5
Raceeend Offline
Starting to like KiXtart

Registered: 2002-05-09
Posts: 129
Loc: The Netherlands
Not that i have found so far.
_________________________
regards, Martijn

Top
Page 2 of 2 <12


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 170 anonymous users online.
Newest Members
dimi575, Drecksnacken, Nlill, webtools321, multiman
17734 Registered Users

Generated in 0.074 seconds in which 0.05 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org