??????? LDIFDE ???????? ?????? ?????? ???????? ??? Active Directory?

?????? ????????? ?????? ?????????
???? ???????: 237677 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

??????

????? ????? ????? ???????? (LDIF) ????? ????????? LDAP ?? ????? ?????? ?????? ?????? ??? ?? ??? ???????? ?????? ?????? ????? ?? ????? ??????? ???? ????? ?????? LDAP. ???? ??????? LDIF ???????? ???????? ????????? ??? ???? ?????? ?????? ????? ??? ??????? ???????? ???????? ????? Active Directory. ?? ????? ?????? ?????? ???????? LDIFDE ?? ???? ??????? Windows 2000 ???? ???????? ??????? ???????? ??? ?????? ????? ????? LDIF. ??? ?? ????? ??? ??????? ?? ?????? ??? ??? ????? ??????? ?????? ???????? LDIFDE ?????? ??????? ????? ????.

??????? ????

??? ?????? LDIFDE ??????

  1. ???? ??? ???? ???? ??? ??????? ?? ??? ??? ??????? ???????? ?? ???? ??? ???? ???????.
  2. ???? ?? ???? ???????: ldifde ?. ??? ??? ??? ????????? ?????? ??? ?? ???? ?????.

?????? ????

-i?              Turn on Import Mode ?(The default is Export)
-f? filename?     Input or Output filename
-s? servername?   The server to bind to
-c? FromDN ToDN?  Replace occurrences of FromDN to ToDN
-v?              Turn on Verbose Mode
-j?              Log File Location
-t?              Port Number ?(default = 389)
-?              Help
				

????? ?????? ?????

-d? RootDN?       The root of the LDAP search ?(Default to Naming Context)
-r ?Filter?       LDAP search filter ?(Default to "?(objectClass=*)")
-p? SearchScope?  Search Scope ?(Base/OneLevel/Subtree)
-l? list?         List of attributes (comma separated) to look for in an LDAP
                search.
-o? list?         List of attributes (comma separated) to omit from input
-g?              Disable Paged Search
-m?              Enable the SAM logic on export
-n?              Do not export binary values
				

??????? ????? ?????

-k?      The import will go on ignoring 'Constraint Violation' and 'Object
        Already Exists' errors
				

?????? ?????? ????????

-a?      Sets the command to run using the supplied user distinguished name
        and password. For example: "cn=yourname,dc=yourcompany,dc-com
        password"	
-b?      Sets the command to run as username domain password. The default is
        to run using the credentials of the currently logged on user.	
				
??????: ??? ???? LDIFDE ????? ??????? ????? ????? ?? ?????? ??????? ????????? ?????? ???? ???????. ?? ????? ?????? ???????? ?? Windows 2000 Server? ?????? ??? ????? ?? Windows 2000 Professional. ????? ??? ?????? LDIFDE ??? ???? ??????? ???? ????? ??????? Windows 2000 Professional ?? ?????? ?? ??? ????? Windows 2000 Server Active Directory.

??????? LDIFDE ???????? ?????? ?????? ????????

???? ??? ????? ??????? ???? ????? ??????? ??????? ????????? (OUs) ??????? ?????????? ???????? ?? ??? ????? Windows 2000 Active Directory ??? ???. ??? ???? ??????? "Export" ?? ??? ?????? ???? ???? ????? ???????? ??? ?"Import" ?? ??? ?????? ???? ???? ??????? ???????? ????. ???? ???? ??????? LDIFDE ???????? ???? ?????? ?????? ???????? ??? Active Directory. ????? ??????? ????????? ?? ?????? ??????.
  1. ?? ?????? ?????? ??? ?????? Export ??????. ?? ???? ????? ?????? ???????? ???? ??? ?? ???????? ???????? ?? ?? ????? ?? ????? ?????? ????????? ???????? ????? Active Directory.
  2. ???? ??? ????? ??? ??? ???????? ?? ??? ??? ??????? ???????? ?? ???? ??? ???? ???????.
  3. ???? ?? ???? ???????:
    ldifde -f exportOu.ldf -s Server1 -d "dc=Export,dc=com" -p subtree -r "(objectClass=organizationalUnit)" -l "cn,objectclass,ou"
    ?? ???? ????? ??? ?????? ??? ????? ?? ??????? ????????? (?? ??? ????? ???? ??????) ??? ??? ???? ExportOU.ldf.

????? ?????? ?????????? ?? ?????? ??????.

???? ?? ???? ???????:
ldifde -f Exportuser.ldf -s Server1 -d "dc=Export,dc=com" -p subtree -r "(&(objectCategory=person)(objectClass=User)(givenname=*))"? -l "cn,givenName,objectclass,samAccountName"
?? ???? ????? ??? ?????? ??? ????? ?? ?????? ?????????? ??? ??? ???? Exportuser.ldf. ?? ?? ???? ????? ????????? ??? ?? ??? ???? ???? ?????? ????????. ??????? objectclass ?samAccountName ????????? ??? ???? ????? ???? ?? ?????? ??? ???????.

??????: ?? ???? ???????? ???????? ??? ???? ???????? ??? ????. ??? ??????? ?????????? ?? ???? ???? ??????? LDAP ???????? ????? ?????? ??? ????????. ?? ???? LDIFDE ????? ????? ??????.

??????? ??????? ????????? ?? ?????? "Export" ??? ?????? "Import"

  1. ?? ?????? ?????? ??? ?????? Import ??????. ?? ???? ????? ?????? ???????? ???? ??? ?? ???????? ???????? ?? ?? ????? ?? ????? ?????? ????????? ???????? ????? Active Directory.
  2. ???? ????? Exportou.ldf ???????? "???????".
  3. ?? "???????"? ?? ??????? ?????? ???? ??? ???????.
  4. ?? ???? ??? ??? ???? Export. ?? ???? ??????? ??? ???? Import.
  5. ???? ??? ??????? ????.
  6. ??? ?????? ?? ??????? ????? ????????? ?? ???? ?????????? ?? ????? ?????.
  7. ???? ?? ???? ???????:
    ldifde -i -f ExportOU.ldf -s Server2
??? ?? ???? ????? ???? ??? ????????? ???? ?? ??????? ??? ???? ??? ?? ????? ?? ?? ?????.

??????: ?? ??? ??????? ??? ????? ?????? ?????? ??? ?????? ??????? ??? ????? ??????? ????????? ??????? ??????? ??????????.

??????? ?????????? ?? ?????? "Export" ??? ?????? "Import"

  1. ???? ????? Exportuser.ldf ???????? "???????".
  2. ?? "???????"? ???? ??????? ?????? ?? ???? ??? ???????.

    ??????: ???? ?? ?? ??? ??????? "Export" ?? ??? ?????? ???? ???? ????? ???????? ??? ?"Import" ?? ??? ?????? ???? ???? ??????? ???????? ????. ???? ??????? ??? ?????? "Export" ???? ?????? ???? ??? ???????? ???? ??? ???? ??????? ??? ?????? "Import" ???? ?????? ???? ??? ?????????? ????.
  3. ?? ???? ??? ??? ???? Export. ?? ???? ??????? ??? ???? Import.
  4. ???? ??? ??????? ????.
  5. ??? ?????? ?? ??????? ????? ????????? ?? ???? ?????????? ?? ????? ?????.
  6. ???? ?? ???? ???????:
    ldifde -i -f Exportuser.ldf -s Server2
  7. ?? ???? ???? ??????? ??? ?? ??????? ?????? ???????? ?????? ???????? Active Directory Users and Computers ?? ???????? ???? ?????? Windows.
??????: ????? ??? LDIFDE ?? ???? ?????? ????? ??????? ??? ????? ?????? ?????? ???? ?????? ??? "????"? ??? ??????? ???????? ??? ??????. ???? ?????? ????? ???????. ???? ??? ????? ???? ?????? "User must change password at next logon".

????? ???????? ?? ???? ??????

??? ??? ????? ??? ????? ????? ??????? ????????? ??????? ?? ???? ??????? ?? ???? ?????? ????? ??????? ?????? ??????? LDIFDE ???????? ????? ????? ?? ???? ?? ?????? ?? ????? ?? ???? ?? ?????????? ??? ????? ?? ????? ?????? ??????? ???????? (CG). ?????? ????? ???? ?? ?? ???? ???? ?????? ???? ?? ??????? ?????? ??????? -s ?? ?????? ??????? ????????? ???????? ??? ???? ??? ???? ?????? ??????? ???????? ???????? ????? ??????? -t. ??? ???? ?????? ??????? ???????? ?? 3268.

??? ???? ??????? ?????? ????? ????? ????? ?? ????? ?????? ??????? ????????? ??? ????? ??? LDIFDE ??????:
ldifde -f Exportuser.ldf -s Server1 -t 3268 -d "dc=Export,dc=com" -p subtree -r "(&(objectCategory=person)(objectClass=User)(givenname=*))"? -l "cn,givenName,objectclass,sAMAccountName"
??????: ?????? ?????? ???? AD? ??? ????? ??????? ?????? ??? ??????? ?? ??? ?????????? ????? ??? ????? "-" ??? ??? ???? ??????? ??? ???? ?????? ??? ????? ??????. ???????? ??? ????? ??? ?????: ldifde -i -f Import.ldf -s Server.

????? ?????? ??? ?????????/???????:
dn: ?CN=Jane Doe,OU=Staff,DC=microsoft,DC=com
changetype: ?modify
replace: ?extensionAttribute1
extensionAttribute1 Staff
-

dn: CN=John Doe,OU=Staff,DC=microsoft,DC=com
changetype: ?modify
replace: ?extensionAttribute1
extensionAttribute1 Staff
-
				

???????

???? ???????: 237677 - ????? ??? ??????: 24/?? ?????/1426 - ??????: 2.1
????? ???
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Datacenter Server
????? ??????: 
kbhowto KB237677

????? ???????

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com