Win2k3 Server i csvde

Zagadnienia dotyczące technice w szerokim tego pojęcia znaczeniu czyli luźne dyskusje o zagadnieniach technicznych ale nie związanych z główną tematyką forum, m.in, komputery, oprogramowanie, systemy operacyjne - techniczny Hyde-Park.

Moderator: Moderatorzy

ODPOWIEDZ
Awatar użytkownika
Jo_gurt
Guru bezprzewodowy
Posty: 16330
Rejestracja: 2007-11-16, 21:49
Lokalizacja: Lublin

Win2k3 Server i csvde

Post autor: Jo_gurt »

Witam,
mam taki oto problem. Weksportowałem sobie pojedynczy obiekt - komputer z Active Directory komendą

Kod: Zaznacz cały

csvde -f komputer.csv -d "cn=NowyKomp, ou=Computers, ou=Test, dc=owocowy, dc=jogurt, dc=com" -m
I ładnie mam plik komputer.csv z nagłówkiem i jednym rekordem.
Następnie poprzez funkcję Zamień w notatniku zamieniam wszystkie wystąpienia NowyKomp na NowyKomp_csv.
Potem wrzucam komendę importującą i jest problem:

Kod: Zaznacz cały

C:\Documents and Settings\Administrator>csvde -i -f komputer.csv
Connecting to "(null)"
Logging in as current user using SSPI
Importing directory from file "komputer.csv"
Loading entries.
Add error on line 2: Constraint Violation
The server side error is "Multiple values were specified for an attribute that can have only one value."
0 entries modified successfully.
An error has occurred in the program
No log files were written.  In order to generate a log file, please
specify the log file path via the -j option.
Zaimportowałem sobie plik komputer.csv do Excela i wszystko wygląda na OK - w każdej kolumnie jest odpowiednia wartość.

Robiąc podobną rzecz za pomocą ldifde miałem podobny problem, który udało mi się w pewien sposób ominąć usuwając polę "localPolicyFlags" mający wartość 0. Tutaj już to nie przejdzie, po usunięciu wywala coś takiego:

Kod: Zaznacz cały

C:\Documents and Settings\Administrator>csvde -i -f komputer.csv
Connecting to "(null)"
Logging in as current user using SSPI
Importing directory from file "komputer.csv"
Loading entries.
Add error on line 2: Unwilling To Perform
The server side error is "The specified user account is not a member of the spec
ified group account."
0 entries modified successfully.
An error has occurred in the program
No log files were written.  In order to generate a log file, please
specify the log file path via the -j option.
Jeśli macie jakieś sugestie lub chociaż najdrobniejszy pomysł o co biega to będę wdzięczny :)
ODPOWIEDZ