|
|
@@ -10,6 +10,11 @@ else
|
|
|
exit 1
|
|
|
fi
|
|
|
|
|
|
+if user_is_posix $uid; then
|
|
|
+ echo "User $uid is already a posixAccount"
|
|
|
+ exit 1
|
|
|
+fi
|
|
|
+
|
|
|
user="dn: uid=%UID%,$PEOPLEDN
|
|
|
changeType: modify
|
|
|
add: objectClass
|
|
|
@@ -40,7 +45,6 @@ cn: %UID%
|
|
|
gidNumber: %NUMBER%
|
|
|
memberUid: %UID%"
|
|
|
|
|
|
-# get the list of currently used uid numbers and add 1 to get the next one
|
|
|
uidnumber=get_posix_number
|
|
|
|
|
|
# add the necessary attribbute for a posixAccount
|