PC Review


Reply
Thread Tools Rate Thread

Change User attribute in Active Directory by web (vb.net)

 
 
malin@o2.pl
Guest
Posts: n/a
 
      19th Aug 2005
Hi

I have some problem, i modify attributs in .net by web but nothing
happends, i don;t have any exceptions , everything would be okey but
does'nt

the code :

dim Entry_ldap As New
DirectoryEntry("LDAP://hercena11.d450000.wro.mofnet.gov.pl",
login.text, Password.text)
Dim lista_atr() As String = {"mail"}
Dim Filter As String = ("(&(sAMAccountName=" & login.text &
")(objectclass=" & "user" & "))")
Dim my_ldap_user As DirectorySearcher = New
DirectorySearcher(entry_ldap, Filter, lista_atr)
my_ldap_user.PropertyNamesOnly = True
Dim result As SearchResult
result = my_ldap_user.FindOne()
result.GetDirectoryEntry.Properties("mail").Value = txt_maillst.Text
result.GetDirectoryEntry.CommitChanges()

thanks for all answers
malin

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How To Manipulate the ThumbNailPhoto Attribute of a User Object in the Active Directory Jarkko Turpeinen Microsoft Windows 2000 Active Directory 0 26th Jan 2007 02:14 PM
Change User attribute in Active Directory by web (vb.net) malin@o2.pl Microsoft Windows 2000 Active Directory 1 20th Aug 2005 02:50 AM
Storing Photos in Active Directory - jpegPhoto attribute - User class netcoder77 Microsoft VB .NET 5 24th Jul 2004 11:59 PM
Storing Photos in Active Directory - jpegPhoto attribute - User class netcoder77 Microsoft Dot NET Framework 5 24th Jul 2004 11:59 PM
script to use IsObject to get Active directory User object attribute Sudeep Microsoft Windows 2000 Active Directory 0 3rd Mar 2004 01:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:12 AM.