Redbrick User management tool
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
157 B

  1. #! /usr/bin/env python
  2. import sys
  3. dcu = 0
  4. for line in sys.stdin:
  5. if line.startswith('dn:'):
  6. dcu = line.find('ou=dcu') != -1
  7. if not dcu:
  8. print line,