473,387 Members | 1,485 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

get Exchange 5.5 Assoc-NT-Account

Hi,

i'm getting crazy...

I try to translate my vbscripts to C# but i can't retrieve some
attributes of an Exchange 5.5 mailbox (particularly Assoc-NT-Account).

So, if someone had a piece of code that retrieve the primary windows
account of an exchange mailbox (even the SID form...), i will be the
happiest guy.

Thanks,

Sté
Nov 16 '05 #1
5 2919
Show us what you have, and what's not working, maybe we can help you find
the problem.

Willy.

"steletroll" <st********@hotmail.com> wrote in message
news:3a**************************@posting.google.c om...
Hi,

i'm getting crazy...

I try to translate my vbscripts to C# but i can't retrieve some
attributes of an Exchange 5.5 mailbox (particularly Assoc-NT-Account).

So, if someone had a piece of code that retrieve the primary windows
account of an exchange mailbox (even the SID form...), i will be the
happiest guy.

Thanks,

Sté

Nov 16 '05 #2
Hi,

first thanks for your answer.

If i use the following code :

DirectoryEntry entry = new DirectoryEntry(
"LDAP://server/objectldappath",
"dc=domain,cn=user,cn=admin",
"*******",
AuthenticationTypes.ServerBind);

foreach (string prop in entry.Properties.PropertyNames)
{
Console.WriteLine(prop);
}

i get the following output :

objectClass
rdn
cn
distinguishedName
Hide-From-Address-Book
rfc822Mailbox
mail
textEncodedORaddress
otherMailbox
conferenceInformation
mailPreferenceOption
givenName
Home-MTA
uid
MAPI-Recipient
sn
Alt-Recipient
memberOf

nothing about the Assoc-nt-Account, nt-security-descriptor...
So my question was how i can get those values.

Thanks for your help
Nov 16 '05 #3
Ok, this proves only that the Assoc-nt-Account (a binary SID )is not
assigned to the mailbox you are binding with.
I suggest you try using adsiedit and look what this one returns when binding
to exactly the same object.

Willy.

"steletroll" <st********@hotmail.com> wrote in message
news:3a**************************@posting.google.c om...
Hi,

first thanks for your answer.

If i use the following code :

DirectoryEntry entry = new DirectoryEntry(
"LDAP://server/objectldappath",
"dc=domain,cn=user,cn=admin",
"*******",
AuthenticationTypes.ServerBind);

foreach (string prop in entry.Properties.PropertyNames)
{
Console.WriteLine(prop);
}

i get the following output :

objectClass
rdn
cn
distinguishedName
Hide-From-Address-Book
rfc822Mailbox
mail
textEncodedORaddress
otherMailbox
conferenceInformation
mailPreferenceOption
givenName
Home-MTA
uid
MAPI-Recipient
sn
Alt-Recipient
memberOf

nothing about the Assoc-nt-Account, nt-security-descriptor...
So my question was how i can get those values.

Thanks for your help

Nov 16 '05 #4
I am sure that the attribute is not empty. I can see the value the
exchange administrator in raw mode.

In vbscript, i use opendsobject to bind to the object and i can
retrieve the SID, but i can't with DirectoryService...

I have no idea...

Ste
Nov 16 '05 #5
I did not say the attribute was empty, I said it wasn't assigned to. If you
enumerate all the properties, Assoc-nt-Account did not show up, that means
it's not in the properties collection.
Do you run the script with the same user credentials aand authentication
type as you are binding to using DirectoryEntry?
Is it possible that the property is protected by an ACL?
These are all questions you can answer yourself using Adsiedit.msc.

Willy.
"steletroll" <st********@hotmail.com> wrote in message
news:3a**************************@posting.google.c om...
I am sure that the attribute is not empty. I can see the value the
exchange administrator in raw mode.

In vbscript, i use opendsobject to bind to the object and i can
retrieve the SID, but i can't with DirectoryService...

I have no idea...

Ste

Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: warren ali | last post by:
Hi all! I'm new to python and I seem to have a hit a of a brick wall. I hope you guys can help. I'm trying to rewrite some of my vbscripts in python. This particular script connects to a...
6
by: Jason | last post by:
Sorry for the post here but could not find an Exchange newgroup. I developed an application a year or 2 ago that sends SMTP email. The application allows the user to customize the text from...
19
by: steve | last post by:
// What I want to do Use enumerated types with the Interlocked.Exchange methods Suggestions please // My estimation of problem Seems like Interlocked.Exchange only works with ints,...
8
by: Rob Edwards | last post by:
When trying to add the Microsoft CDO for Exchange Management Library (aka CDOEXM.dll) I receive the following message: "A reference to 'Microsoft CDO for Exchange Management Library' could not be...
6
by: lwoods | last post by:
I want to be able to get the present year in one statement. I know that I can do it this way: $y = getdate(); echo 'year='.$y; But, I want to do something like: echo 'year='.getdate(); ...
8
by: Michel Posseth [MCP] | last post by:
Hi does someone has experience with this ?? i have made a lot of apps in the past that were capable of sending e-mails the server i then talked to was a Linux SMTP server and it worked great ...
0
by: arjen1984 | last post by:
I am now working on C# with WebDAV on Exchange now to get appointments. When I work local on the domain where the server is, i can get the appointments no problem. When I work outside of it, i get an...
5
by: annCooper | last post by:
Exchange Rates Source file: Exchange.cs Input file: Exchange.in Output file: Exchange.out Using money to pay for goods and services usually makes life easier, but sometimes people prefer to...
19
Purple
by: Purple | last post by:
Hi All, What is the best way to create an XML stream from an assoc array in php. Regards Purple
5
by: KDawg44 | last post by:
Hi, Is there a way to get a multidimensional associative array with the entire result set? I would like to get a an array like this: resultsArray How can I accomplish this? Can I do...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.