2007/09/06 10:40

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);
                }
            }
        }
    }
}
크리에이티브 커먼즈 라이선스
Creative Commons License

'Microsoft > SPS/MOSS' 카테고리의 다른 글

MOSS Form based authentication  (0) 2007/09/07
Active directory how to  (0) 2007/09/06
Active Directory ㅠ_ㅠ  (0) 2007/09/06
MOSS 테크넷  (0) 2007/09/05
Active directory 제어  (0) 2007/09/05
MOSS Custom 검색을 위한 Webpart를 만들기 위한 예제 코드  (0) 2007/09/01
올블로그추천버튼 블코추천버튼 블로그뉴스추천버튼 믹시추천버튼 한RSS추가버튼 구글리더기추천버튼


이 포스팅이 도움이 되었다면 구글에서 관련 정보를 찾아 보세요 ^^


Trackback 0 Comment 0

Trackback : http://i-ruru.com/trackback/160 관련글 쓰기