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


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



Relevant Pages

  • Re: Change User attribute in Active Directory by web (vb.net)
    ... m...@o2.pl 19 Sie. ... Change User attribute in Active Directory by web ... dim Entry_ldap As New ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • deleting contactitems
    ... Dim oOtk As New Outlook.Application ... "System.Runtime.InteropServices.COMException: Die Anzahl ... oder entfernen Sie Anhänge und Bilder von ungesendeten ...
    (microsoft.public.outlook.interop)
  • Active Directory gives up group info for only SOME users
    ... Our ASP.NET app is secured with forms authentication and validates users ... against Active Directory. ... Private _filterAttribute As String ... Dim entry As DirectoryEntry = New DirectoryEntry(_path, domainAndUsername, ...
    (microsoft.public.dotnet.security)
  • AD only gives up group (role) information for SOME users
    ... Our ASP.NET app is secured with forms authentication and validates users ... against Active Directory. ... Private _filterAttribute As String ... Dim entry As DirectoryEntry = New DirectoryEntry(_path, domainAndUsername, ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Need assistance badly!
    ... I have tried cobbling together a script that does this, ... I would use ADO in a VBScript program to retrieve all users with the ... Dim objRootDSE, strDNSDomain, strQuery, adoRecordset, strName, strCN ... adoConnection.Open "Active Directory Provider" ...
    (microsoft.public.scripting.vbscript)

Loading