Active Directory ㅠ_ㅠ

이런 그지같은 AD ㅠㅠ

http://msdn2.microsoft.com/en-us/library/aa772218.aspx
Active Directory Service Interfaces(ADSI) Reference

http://msdn2.microsoft.com/en-us/library/aa367008.aspx
Lightweight Directory Access Protocol(LDAP)




Active Dirctory를 이용한 경로 정보 전체보기

//-----------------------------------------------------------------------
//  This file is part of the Microsoft .NET Framework SDK Code Samples.
//
//  Copyright (C) Microsoft Corporation.  All rights reserved.
//
//This source code is intended only as a supplement to Microsoft
//Development Tools and/or on-line documentation.  See these other
//materials for detailed information regarding Microsoft code samples.
//
//THIS CODE AND INFORMATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY
//KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
//IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
//PARTICULAR PURPOSE.
//-----------------------------------------------------------------------

using System;
using System.DirectoryServices;
using System.Security.Permissions;
using System.Runtime.InteropServices;

namespace Microsoft.Samples
{  
    public sealed class ADRead
    {
        private ADRead() {}

        public static void Main(String[] args)
        {
            if(args.Length!=1)
            {
                Console.WriteLine("Usage: " + Environment.GetCommandLineArgs()[0] + " <ad_path>");
                Console.WriteLine ();
                Console.WriteLine ("Press Enter to continue...");
                Console.ReadLine();
                return;
            }

            DirectoryEntry objDirEnt=new DirectoryEntry(args[0]);
            Console.WriteLine("Name            = " + objDirEnt.Name);
            Console.WriteLine("Path            = " + objDirEnt.Path);
            Console.WriteLine("SchemaClassName = " + objDirEnt.SchemaClassName);
            Console.WriteLine("");
            Console.WriteLine("Properties:");

            foreach(String Key in objDirEnt.Properties.PropertyNames)
            {
                Console.Write("\t{0} = ", Key);
                Console.WriteLine("");
                foreach(Object objValue in objDirEnt.Properties[Key])
                {
                    Console.WriteLine("\t\t{0}", objValue);
                }
            }
        }
    }
}

'System > Microsoft SharePoint' 카테고리의 다른 글

MOSS Form based authentication  (0) 2007.09.07
Active directory how to  (0) 2007.09.06
MOSS 테크넷  (0) 2007.09.05
Active directory 제어  (0) 2007.09.05
MOSS Custom 검색을 위한 Webpart를 만들기 위한 예제 코드  (0) 2007.09.01