Re: Change User attribute in Active Directory by web (vb.net)
From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: 08/19/05
- Next message: wrecker: "Re: Role-based authentication and Forms and System.UnauthorizedAccessException"
- Previous message: Joe Kaplan \(MVP - ADSI\): "Re: Security Exception"
- In reply to: malin_at_o2.pl: "Change User attribute in Active Directory by web (vb.net)"
- Next in thread: Pat: "Re: Change User attribute in Active Directory by web (vb.net)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 19 Aug 2005 10:26:41 -0500
You multi-posted. Answered in microsoft.public.adsi.general.
Joe K.
<malin@o2.pl> wrote in message
news:1124436777.133599.23900@g49g2000cwa.googlegroups.com...
m...@o2.pl 19 Sie. 09:30 pokaż opcje
Grupa dyskusyjna: microsoft.public.adsi.general
Od: m...@o2.pl - Znajdź wiadomości tego autora
Data: 19 Aug 2005 00:30:24 -0700
Lokalna: Piąt. 19 Sie. 2005 09:30
Temat: Change User attribute in Active Directory by web (vb.net)
Odpowiedz | Odpowiedz autorowi | Przekieruj | Drukuj | Wiadomość
prywatna | Pokaż oryginalną wiadomość | Usuń | Zgłoś naruszenie
prawa lub regulaminu
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
- Next message: wrecker: "Re: Role-based authentication and Forms and System.UnauthorizedAccessException"
- Previous message: Joe Kaplan \(MVP - ADSI\): "Re: Security Exception"
- In reply to: malin_at_o2.pl: "Change User attribute in Active Directory by web (vb.net)"
- Next in thread: Pat: "Re: Change User attribute in Active Directory by web (vb.net)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|