In the following exercises, you list the options available for LDIFDE, export users from the Active Directory, and create a group object in the directory.
Exercise 1: Starting LDIFDE
In this exercise, you list the command options available with LDIFDE.
1. Open a Command Prompt.
2. For a list of commands, at the command prompt, type: ldifde /?.
Exercise 2: Exporting the Users from an Organizational Unit
In this exercise, you will export the entire contents of an OU named Marketing, complete with all its users, from the contoso.com domain.
1. In the contoso.com domain (Server01 is a domain controller for contoso.com), create an OU named Marketing.
2. In the Marketing OU, add two or three users. These users may be named whatever you choose.
3. Open a command prompt and type the following LDIFDE command (the character : indicates continuation to the next line)
ldifde -f marketing.ldf -s server01 : -d "ou=Marketing,dc=contoso,dc=com" : -p subtree -r : "(objectCategory=CN=Person,CN=Schema,CN=Configuration,: DC=contoso,DC=com)" Figure 4-4 shows the code in action. Figure 4-4 Output of LDIFDE export–Marketing OU
This creates a LDIF file named Marketing.ldf by connecting to the server named Server01 and executing a subtree search of the Marketing OU for all objects of the category Person.
4-18 Chapter 4 Group Accounts Exercise 3: Using LDIFDE to Create a Group
In this exercise, you will use LDIFDE to add a group named Management to the Marketing OU of contoso.com.
1. Start a text editor, such as Notepad, and create a text file named Newgroup.ldf. (Save the file as an LDIF file, not as a text file.)
2. Edit the LDIF file Newgroup.ldf, and add the following text:
dn: CN=Management,OU=Marketing,DC=contoso,DC=com changetype: add cn: Management objectClass: group samAccountName: Marketing
3. Save and close the LDIF file.
4. Open a Command Prompt, type the following command and then press Enter: ldifde -i -f newgroup.ldf -s server01 Tip Watch for extra “white space” (tabs, spaces, carriage returns, line feeds) in the file. Extra white space in the file will cause the command to fail. 5. To confirm that the new group has been created, check the Active Directory Users And Computers snap-in.
The following questions are intended to reinforce key information presented in this lesson. If you are unable to answer a question, review the lesson materials and try the question again. You can find answers to the questions in the “Questions and Answers” section at the end of this chapter.
1. Which of the following LDIFDE commands changes the function of LDIFDE from export to import?
2. What object classes are possible to export and import using LDIFDE?
Chapter 4 Group Accounts 4-19 3. You have a database of users that is capable of exporting CSV files. Can you use such a file, or must you create an *.ldf file manually for importing?
■ LDIFDE is an included tool with Windows Server 2003 that allows for the importing and exporting of data into and out of Active Directory.
■ If you have an existing directory of user data, you can use LDIFDE to export the desired data for importing into the Active Directory, which is, generally, a more efficient process than creating each element individually by hand. CSV files are usable, so long as the data is correctly formatted, with all required elements included and in their proper order.
■ LDIFDE can be copied from a Windows Server 2003 to a Windows 2000 or Windows XP desktop for use with an Active Directory.
注册－收款工具那么多，为何选择Payoneer？ ｜ 为何申请Payoneer万事达预付卡+欧美日收款银行账号？
Payoneer有卡账户和无卡账户的区别 ｜ Payoneer个人账户注册申请教程 ｜ P卡公司帐户注册教程
Payoneer欧元帐户（虚拟卡） ｜ Payoneer英镑帐户 ｜ Payoneer日元帐户 ｜ 订购实体卡（P卡）
Payoneer卡年费啥时候扣？ ｜ Payoneer卡休眠和激活 ｜ P卡到期后如何更换？ ｜ 如何注销P卡？
官方－Payoneer秉承公正、公开、透明服务 ｜ Payoneer官方最新政策汇总 ｜ 官方客服联系方式
Payoneer官方费用表 ｜ 如何减少Payoneer的手续费？ ｜ 点此免除入账费 ｜ 点此降低提现费
跨境收款服务商拷问篇——Payoneer ｜ Payoneer客户答疑手册（FAQ） ｜ Payoneer手机App
收款－跨境电商/外贸收款方式对比 ｜ Payoneer可以错名收款吗？
Amazon亚马逊卖家设置Payoneer卡收款教程 ｜ Payoneer支持从美国电商平台Newegg收款
CJ联盟设置Payoneer卡收款 ｜ ClickBank联盟设置Payoneer收款 ｜ Amazon联盟设置P卡收款
Payoneer如何从东南亚电商平台Lazada收款 ｜ 如何在Lazada开店？
Payoneer如何从拉美电商平台Linio收款？ ｜ Payoneer绑定非洲电商平台Jumia收款
Payoneer如何从跨境移动电商Wish收款？ ｜ Wish模式正在改变电商格局
Payoneer支持从法国乐天Priceminister收款 ｜ 法国电商平台CDiscount对接Payoneer收款
如何使用Payoneer请求付款？ ｜ 关于Payoneer卡充值
从PayPal提现到Payoneer卡教程及手续费用 ｜ PayPal无法绑定并转账到Payoneer卡？
提现－从Payoneer卡提现到国内银行账户 ｜ Payoneer无法从Dating联盟收款并限制提现方式
用P卡在中国银行ATM机取款4000元 ｜ 用Payoneer卡在中国建设银行ATM机取款500元