This repository was archived by the owner on Dec 11, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed
Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ BASE_DN="dc=wmftest,dc=net"
99TOOL_BASE_DN=" ou=servicegroups,${BASE_DN} "
1010ADMIN_DN=" cn=admin,${BASE_DN} "
1111ADMIN_PASS=" vagrant_admin"
12- MEMBER_DN=${2:= $ADMIN_DN }
12+ MEMBER_DN=${2:- $ADMIN_DN }
1313
1414# Crappy random id generator
1515NEW_GID=$( echo -n " ${TOOL} " | sha1sum | awk ' {print $1}' | tr ' [:lower:]' ' [:upper:]' )
Original file line number Diff line number Diff line change 66# Usage: add-user.sh SHELL_USER_NAME [WIKI_USER_NAME]
77
88NEW_UID=${1:? SHELL_USER_NAME required}
9- NEW_CN=${2:= $NEW_UID }
9+ NEW_CN=${2:- $NEW_UID }
1010BASE_DN=" dc=wmftest,dc=net"
1111USER_BASE_DN=" ou=People,${BASE_DN} "
1212ADMIN_DN=" cn=admin,${BASE_DN} "
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ # Hack a tool into the testing LDAP server setup with MediaWiki-Vagrant's
3+ # role::striker.
4+ #
5+ # Usage: add-tool.sh NAME [DN_OF_MAINTAINER]
6+
7+ TOOL=${1:? TOOL required}
8+ BASE_DN=" dc=wmftest,dc=net"
9+ TOOL_BASE_DN=" ou=servicegroups,${BASE_DN} "
10+ ADMIN_DN=" cn=admin,${BASE_DN} "
11+ ADMIN_PASS=" vagrant_admin"
12+
13+ /usr/bin/ldapadd -x -D " ${ADMIN_DN} " -w " ${ADMIN_PASS} " << LDIF
14+ dn: cn=tools.${TOOL} ,${TOOL_BASE_DN}
15+ changetype: delete
16+ LDIF
You can’t perform that action at this time.
0 commit comments