-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: LovedJohnySmith
Message 8 in Discussion



U  r Using ASP rite???, then i'm
damn sure, i unchecked anonymous access check box??, so u may need to set
ur Domain Name using Winnt Object.



example: 



Dim fso As IADsFileServiceOperations 

Dim ses As IADsSession

Dim coll As IADsCollection

Dim mySessionName As String



Set fso = GetObject("WinNT://DomainServer") 

Set coll = fso.Sessions



' Insert code to set mySessionName to the name of mySession.

 

' The following statement invokes IADsCollection::GetObject.

Set ses = coll.GetObject(mySessionName)





if u wanna access thro' LDAP



Dim cont As IADsContainer

Dim usr As IADsUser

Set cont = GetObject("LDAP://OU=Sales,DC=Fabrikam,DC=com";)

Set usr = cont.GetObject("user", "jeffsmith")

This is equivalent to:

Dim usr As IADsUser

Set usr=GetObject("LDAP://CN=jeffsmith, OU=Sales,DC=Fabrikam,DC=com")

Note: but one thing using LDAP, you
can't get User Email Address(if suppose u wanna get Email address of an
User)



I hope quite stright forward.

thanx and regards,

smith







-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_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]

Reply via email to