[CSVDE] import van users en lid maken van een groep

Pagina: 1
Acties:
  • 985 views sinds 30-01-2008
  • Reageer

  • markkl
  • Registratie: Mei 2005
  • Laatst online: 29-01 13:38
Ik probeer al een poosje users te importen via CSVDE en die user automatische lid maken van een groep.
Maar nou krijg ik telkens de volgende error:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
C:\Documents and Settings\Administrator.MARK-T866YNQEL3\Desktop>CSVDE -i -f g2.c
sv
Connecting to "(null)"
Logging in as current user using SSPI
Importing directory from file f.csv"
Loading entries.
Add error on line 4: Unwilling To Perform
The server side error is "Access to the attribute is not permitted because the a
ttribute is owned by the Security Accounts Manager (SAM)."
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.


CSV bestand :
code:
1
2
3
4
objectClass,sAMAccountName,dn,homeDrive,userAccountControl,memberOf
Group,groep1," CN=groep1,DC=markkl,dc=com",,,
user,user1,"CN=user1,DC=markkl,dc=com",C:/test,,
user,user2,"CN=user2,DC=markkl,dc=com",,544,"CN=groep1,DC=markkl,DC=com"


Wat doe ik hier verkeerd?

  • Question Mark
  • Registratie: Mei 2003
  • Nu online

Question Mark

Moderator SSC/WOS

F7 - Nee - Ja

MCSE NT4/2K/2K3, MCTS, MCITP, CCA, CCEA, CCEE, CCIA, CCNA, CCDA, CCNP, CCDP, VCP, CEH + zwemdiploma A & B


  • markkl
  • Registratie: Mei 2005
  • Laatst online: 29-01 13:38
Ja bedankt was der ook al net achter gekomen dat het onmogelijk is vanuit excel users aan een groep koppelen.

  • Question Mark
  • Registratie: Mei 2003
  • Nu online

Question Mark

Moderator SSC/WOS

F7 - Nee - Ja

markkl schreef op zaterdag 17 februari 2007 @ 17:44:
was der ook al net achter gekomen dat het onmogelijk is vanuit excel users aan een groep koppelen.
Hoe bedoel je?

Als je importfile goed is, kun je gewoon users aan je domain toevoegen en lid maken van reeds bestaande groepen. Het kan echter wel zijn dat je "ldifde" moet gebruiken, ipv. "csvde". (wat het meteen weer bewerkelijker maakt). Kijk hier voor een uitleg in het verschil in beide tools.

Wat misschien ooknog wel even handig voor je is, is de volgende tip:
If you do an LDIFDE or CSVDE export, many of the attributes for user and group objects are owned by the system and cannot be re imported. Here's a trick. Run the export with the –m switch. This enables SAM Logic, which is another way of saying that the export skips the attributes that are owned by the system. This gives you a template to use when building your import files or spreadsheets.
Bron: LDIFDE - Export / Import data from Active Directory

[ Voor 11% gewijzigd door Question Mark op 18-02-2007 19:30 ]

MCSE NT4/2K/2K3, MCTS, MCITP, CCA, CCEA, CCEE, CCIA, CCNA, CCDA, CCNP, CCDP, VCP, CEH + zwemdiploma A & B