Created
January 13, 2011 23:43
-
-
Save tbatchelli/778854 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Error executing script : | |
:cmd echo "Check LDAP server is configured for monitoring..." | |
{ ldapsearch -w fred -D "cn=Manager,dc=gogrid,dc=com" -x -l 10 -s base -b cn=Monitor "(objectClass=*)" "@monitorServer"; } || { echo "Check LDAP server is configured for monitoring" failed; exit 1; } >&2 | |
echo "...done" | |
echo "Load LDIF into LDAP server..." | |
{ { | |
ldapadd -h localhost -p 389 -w fred -D "cn=Manager,dc=gogrid,dc=com" -x <<'EOF' | |
dn: [email protected],ou=people,dc=external,dc=gogrid,dc=com | |
objectClass: top | |
objectClass: gogridObject | |
objectClass: inetOrgPerson | |
objectClass: organizationalPerson | |
objectClass: person | |
cn: Test 1242951008 | |
givenName: Test | |
inetUserStatus: Active | |
iplanet-am-user-admin-start-dn: dc=gogrid,dc=com | |
iplanet-am-user-login-status: Active | |
iplanet-am-user-success-url: http://my.gogrid.com/index.jsp | |
mail: [email protected] | |
nsRoleDN: cn=Super User,dc=external,dc=gogrid,dc=com | |
ou: 23379 | |
postalCode: 23423 | |
sn: 1242951008 | |
spAddress1: Address1 Address2 | |
spAddress2:: IA== | |
spCity: San Francisco | |
spCompanyDisplayName: Servepath | |
spCompanyName: Servepath | |
spCompanyType: GOGRID-CUST-DIR | |
spCountryCode: USA | |
spCountryName: United States | |
spSalesforceCsspPassword: abcd1234 | |
spState: California | |
telephoneNumber: 8349080455 | |
uid: [email protected] | |
userPassword:: e1NIQX1mT0ExbnhLRmZ5cVF4OTVHWDBDcFh3SExYYWs9 | |
EOF | |
}; } || { echo "Load LDIF into LDAP server" failed; exit 1; } >&2 | |
echo "...done" | |
echo "LDAP search for ([email protected])..." | |
{ ldapsearch -w fred -D "cn=Manager,dc=gogrid,dc=com" -x -l 10 -b dc=gogrid,dc=com "([email protected])"; } || { echo "LDAP search for ([email protected])" failed; exit 1; } >&2 | |
echo "...done" | |
echo "Delete LDAP object [email protected],ou=people,dc=external,dc=gogrid,dc=com..." | |
{ ldapdelete -h localhost -p 389 -w fred -D "cn=Manager,dc=gogrid,dc=com" -x "[email protected],ou=people,dc=external,dc=gogrid,dc=com"; } || { echo "Delete LDAP object [email protected],ou=people,dc=external,dc=gogrid,dc=com" failed; exit 1; } >&2 | |
echo "...done" | |
:out Last login: Thu Jan 13 15:56:32 2011 from 192.168.3.134 | |
/usr/bin/sudo ~tbatchelli/sudocmdG3301;exit $?; | |
[tbatchelli@29785_1_103 ~]$ /usr/bin/sudo ~tbatchelli/sudocmdG3301;exit $?; | |
Check LDAP server is configured for monitoring... | |
# extended LDIF | |
# | |
# LDAPv3 | |
# base <cn=Monitor> with scope baseObject | |
# filter: (objectClass=*) | |
# requesting: @monitorServer | |
# | |
# Monitor | |
dn: cn=Monitor | |
objectClass: monitorServer | |
cn: Monitor | |
description: This subtree contains monitoring/managing objects. | |
description: This object contains information about this server. | |
description: Most of the information is held in operational attributes, which | |
must be explicitly requested. | |
monitoredInfo: OpenLDAP: slapd 2.3.43 (Nov 29 2010 03:44:41) | |
# search result | |
search: 2 | |
result: 0 Success | |
# numResponses: 2 | |
# numEntries: 1 | |
...done | |
Load LDIF into LDAP server... | |
adding new entry "[email protected],ou=people,dc=external,dc=gogrid,dc=com" | |
ldapadd: No such object (32) | |
Load LDIF into LDAP server failed | |
logout | |
[H[J | |
:err | |
[Thrown class clojure.contrib.condition.Condition] | |
Restarts: | |
0: [QUIT] Quit to the SLIME top level | |
Backtrace: | |
0: clojure.contrib.condition.Condition.fillInStackTrace(Unknown Source) | |
1: java.lang.Throwable.<init>(Throwable.java:218) | |
2: clojure.contrib.condition.Condition.<init>(Unknown Source) | |
3: pallet.execute$remote_sudo_cmd.invoke(execute.clj:135) | |
4: pallet.execute$execute_ssh_cmds$execute__4773.invoke(execute.clj:166) | |
5: pallet.resource$eval2287$fn__2288.invoke(resource.clj:350) | |
6: clojure.lang.MultiFn.invoke(MultiFn.java:175) | |
7: pallet.resource$execute_commands.invoke(resource.clj:379) | |
8: pallet.execute$execute_ssh_cmds.invoke(execute.clj:201) | |
9: pallet.execute$ssh_cmds.invoke(execute.clj:213) | |
--more-- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment