typo
This commit is contained in:
parent
3a6dd30ad7
commit
dec28eb5a8
|
@ -187,7 +187,7 @@ $ for user in $(getent passwd | awk -F ':' '$3 > 10000 {printf $1 " "}'); do gro
|
|||
|
||||
~~~{.bash}
|
||||
$ for user in $(getent passwd | awk -F ':' '$3 > 10000 {printf $1 " "}'); do \
|
||||
ldapsearch -x -h localhost -LLL -b "uid=$user,ou=people,dc=MACHINE,dc=evolix,dc=net" cn | tail -n2 | \
|
||||
ldapsearch -x -h localhost -LLL -b "dc=MACHINE,dc=DOMAIN,dc=COM" cn | tail -n2 | \
|
||||
tr '\n' ' ' | cut -d':' -f2 | echo -n "$(cat <&0)"; echo = $(groups $user); done
|
||||
~~~
|
||||
|
||||
|
|
Loading…
Reference in New Issue