-----------------------------------------------------------
New Message on MumbaiUserGroup
-----------------------------------------------------------
From: sanjay2003
Message 3 in Discussion
New Message on MumbaiUserGroup
reading users from LDAP proxyAddresses
Reply
Reply to Sender
Recommend
Message 1 in Discussion
From:
sanjay2003
Hi all,
please see the code below...
string myConnString = "Provider=ADsDSOObject;";
OleDbConnection olecon = new OleDbConnection(myConnString);
string strSql ="select Name,mail,proxyAddresses,SN from
'LDAP://DC=mydomain,DC=com' where objectClass ='user' and mail='[EMAIL
PROTECTED]' ";
OleDbCommand cmd = new OleDbCommand(strSql,olecon);
olecon.Open();
OleDbDataReader dr=null;
dr=cmd.ExecuteReader();
while(dr.Read())
{
MessageBox.Show("name="+dr["Name"].ToString());
MessageBox.Show("mail="+dr["mail"].ToString());
MessageBox.Show("mail="+dr["proxyAddresses"]);
MessageBox.Show("sn="+dr["SN"].ToString());
}
dr.Close();
olecon.Close();
consider this line
MessageBox.Show("mail="+dr["proxyAddresses"]);"
actually this is an object of which will have some email address.I need to loop
through this object and read each emailid inside this.I tried in many ways I
could not do it.
If anybody had done it before pls let me know.pass on the code pls
Thanks and Regards
Sanjay
View other groups in this category.
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]