|
@@ -22,6 +22,10 @@ group_is_posix() {
|
|
|
[ -n "$res" ]
|
|
[ -n "$res" ]
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+get_posixGroups () {
|
|
|
|
|
+ ldapsearch -x -LLL -b $GROUPSDN -D $BINDDN -w $BINDPW "(&(memberUid=$1)(objectClass=posixGroup))" | grep cn: | cut -f2 -d' '
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
# get the list of currently used uid numbers and add 1 to get the next one
|
|
# get the list of currently used uid numbers and add 1 to get the next one
|
|
|
# uids between 2000 and 2999 are used for users. If the need to manage
|
|
# uids between 2000 and 2999 are used for users. If the need to manage
|
|
|
# more than 1000 users arise, consider using something else than a few bash scripts
|
|
# more than 1000 users arise, consider using something else than a few bash scripts
|