Skip to content

Instantly share code, notes, and snippets.

@samstarling
Created May 29, 2012 14:02
Show Gist options
  • Save samstarling/2828599 to your computer and use it in GitHub Desktop.
Save samstarling/2828599 to your computer and use it in GitHub Desktop.
bbcpasswd () {
smbpasswd -U <name> -r `host -t srv _ldap._tcp.pdc._msdcs.national.core.bbc.co.uk | cut -d" " -f8 | head -c -2`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment