<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=ASP.Net%2FFile_Directory%2FDirectoryEntry</id>
		<title>ASP.Net/File Directory/DirectoryEntry - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=ASP.Net%2FFile_Directory%2FDirectoryEntry"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=ASP.Net/File_Directory/DirectoryEntry&amp;action=history"/>
		<updated>2026-04-29T22:44:33Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=ASP.Net/File_Directory/DirectoryEntry&amp;diff=1896&amp;oldid=prev</id>
		<title> в 15:30, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=ASP.Net/File_Directory/DirectoryEntry&amp;diff=1896&amp;oldid=prev"/>
				<updated>2010-05-26T15:30:47Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:30, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=ASP.Net/File_Directory/DirectoryEntry&amp;diff=1897&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=ASP.Net/File_Directory/DirectoryEntry&amp;diff=1897&amp;oldid=prev"/>
				<updated>2010-05-26T11:51:47Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==DirectoryEntry(&amp;quot;LDAP://CN=Username, CN=users, DC=DomainName&amp;quot;)==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;%@ Page %&amp;gt;&lt;br /&gt;
&amp;lt;script Language=&amp;quot;vb&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)&lt;br /&gt;
    Dim User As System.DirectoryServices.DirectoryEntry&lt;br /&gt;
    Try&lt;br /&gt;
    User = New System.DirectoryServices.DirectoryEntry(&amp;quot;LDAP://CN=Username, CN=users, DC=DomainName&amp;quot;)&lt;br /&gt;
        Dim Value As String&lt;br /&gt;
        Value = User.Properties(&amp;quot;HomeNumber&amp;quot;).Item(0)&lt;br /&gt;
    Catch&lt;br /&gt;
        &amp;quot;Show error message&lt;br /&gt;
    Finally&lt;br /&gt;
        User.Close()&lt;br /&gt;
    End Try&lt;br /&gt;
End Sub&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==DirectoryEntry(&amp;quot;LDAP://DomainName&amp;quot;, Login, Password)==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;%@ Page %&amp;gt;&lt;br /&gt;
&amp;lt;script Language=&amp;quot;vb&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)&lt;br /&gt;
    If Not ValidateUser(&amp;quot;Login&amp;quot;, &amp;quot;Password&amp;quot;) Then&lt;br /&gt;
    End If&lt;br /&gt;
End Sub&lt;br /&gt;
Function ValidateUser(ByVal Login As String, ByVal Password As String) As Boolean&lt;br /&gt;
    Dim Entry As DirectoryEntry&lt;br /&gt;
    Try&lt;br /&gt;
    Entry = New DirectoryEntry(&amp;quot;LDAP://DomainName&amp;quot;, Login, Password)&lt;br /&gt;
        Dim Search As DirectorySearcher = New DirectorySearcher(Entry)&lt;br /&gt;
        Dim results As SearchResult = Search.FindOne&lt;br /&gt;
        Return True&lt;br /&gt;
    Catch&lt;br /&gt;
        Return False&lt;br /&gt;
    Finally&lt;br /&gt;
        Entry.Close()&lt;br /&gt;
    End Try&lt;br /&gt;
End Function&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==DirectoryServices.DirectoryEntry==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;%@ Page %&amp;gt;&lt;br /&gt;
&amp;lt;script Language=&amp;quot;vb&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;
Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs)&lt;br /&gt;
    Dim Entry As System.DirectoryServices.DirectoryEntry&lt;br /&gt;
    Try&lt;br /&gt;
    Entry = New System.DirectoryServices.DirectoryEntry(&amp;quot;WinNT://DomainName&amp;quot;)&lt;br /&gt;
    Catch&lt;br /&gt;
        &amp;quot;Error message&lt;br /&gt;
    Finally&lt;br /&gt;
        Entry.Close()&lt;br /&gt;
    End Try&lt;br /&gt;
End Sub&lt;br /&gt;
&amp;lt;/script&amp;gt;&lt;br /&gt;
 &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>