source: trunk/locker/sbin/usereditat @ 2820

Last change on this file since 2820 was 2818, checked in by achernya, 7 years ago
Tool for editing users Primarily good for disabling hacked accounts
  • Property svn:executable set to *
File size: 226 bytes
Line 
1#!/bin/sh
2
3if [ ! "$2" ]; then
4    echo "Usage: $0 <server> <user>"
5    exit 2
6fi
7
8exec ldapvi --bind sasl -Y GSSAPI -h $1 -b dc=scripts,dc=mit,dc=edu \
9       "(&(|(objectClass=posixAccount)(objectClass=posixGroup))(cn=$2))"
Note: See TracBrowser for help on using the repository browser.