Skip to content

Instantly share code, notes, and snippets.

@acidprime
Created January 9, 2012 01:18
Show Gist options
  • Save acidprime/1580410 to your computer and use it in GitHub Desktop.
Save acidprime/1580410 to your computer and use it in GitHub Desktop.
Simple DSImport in for Loop
#!/bin/bash
for DSEXPORT in *.dsimport ; do
dseditgroup -o edit -n /LDAPv3/127.0.0.1 -u diradmin -P foobar -a "${DSEXPORT%%.dsimport}" -t user teachers
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment