_ | 覦覈襦 | 豕蠏手 | 殊螳 | 譯殊碁
FrontPage › AD螻覦企j鍵
using System;
using System.DirectoryServices;
namespace ConsoleApplication3
{
	/// <summary>
	/// Class1   る.
	/// </summary>
	class Class1
	{
		/// <summary>
		/// 企  襦蠏碁 譯 讌.
		/// </summary>
		[STAThread]
		static void Main(string[] args)
		{
			//"LDAP://mtsc/CN=yasi,DC=mtsc,DC=co,DC=kr"
			DirectoryEntry de = new DirectoryEntry("LDAP://mtsc/ou=sps, dc=mtsc, dc=co, dc=kr", "螻", "れ");

			DirectoryEntries users = de.Children;

			// 螻/れ 
			DirectoryEntry user = users.Add("CN=yasi", "user");
			user.Properties["userPassword"].Add("password");

			//螻
			user.Properties["userPrincipalName"].Add("yasi@databaser.net");
			user.Properties["userAccountControl"].Add("512");

			//譟一
			user.Properties["company"].Add("");
			user.Properties["department"].Add("MTSC");
			user.Properties["title"].Add("");
			
			//朱
			user.Properties["sn"].Add("");
			user.Properties["initials"].Add("企");
			user.Properties["givenName"].Add("");
			user.Properties["mail"].Add("help@mtac.co.kr");
			user.Properties["displayname"].Add("伎");
			user.Properties["wwwhomepage"].Add("http://www.databaser.net");
			user.Properties["telephoneNumber"].Add("051-248-8700");
			user.Properties["othertelephone"].Add("011-9429-8058");
			user.Properties["othertelephone"].Add("011-9429-8059");
			user.Properties["othertelephone"].Add("011-9429-8057");
			user.Properties["physicalDeliveryOfficeName"].Add("402 304"); //覓伎
			user.Properties["description"].Add("る企?");


			//譯殊
			user.Properties["st"].Add("覿郁"); ///
			user.Properties["l"].Add("蟲"); //蟲/蟲
			user.Properties["streetAddress"].Add("覈殊手概 402 304"); //襾語 譯
			user.Properties["postalCode"].Add("10019"); //壱ク覯
			user.Properties["postOfficeBox"].Add("99999"); // 
					

			//
			user.Properties["mobile"].Add("011-9429-8058"); //企
			user.Properties["homephone"].Add("011-9429-8058");//讌

			//螻
			user.Properties["samAccountName"].Add("yasi");

			
			user.CommitChanges();

		}
	}
}


蠍 蠍郁鍵..
企: : るジ讓曙 襦螻豺 企Ν 譯殊語. 襦螻豺
EditText : Print : Mobile : FindPage : DeletePage : LikePages : Powered by MoniWiki : Last modified 2018-04-13 23:12:52

譴 企 蟆曙一朱 語 蟒 殊 . (覯る)