X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=ud-useradd;h=88d6d66b69573ff2688d53050a91dcd88816412e;hb=3df94f4b2c19e734df37c2f55079ff58d467e8d0;hp=9971549547b40e02f8953510d73b0f5017e37176;hpb=b74de2551ee1d0007697f049435842c670f04db9;p=mirror%2Fuserdir-ldap.git diff --git a/ud-useradd b/ud-useradd index 9971549..88d6d66 100755 --- a/ud-useradd +++ b/ud-useradd @@ -9,7 +9,7 @@ from userdir_gpg import *; # this, one is to fetch all the entires and pick the highest, the other # is to randomly guess uids until one is free. This uses the former. # Regrettably ldap doesn't have an integer attribute comparision function -# so we can only cut the search down slightly +# so we can only cut the search down slightly def GetFreeID(l): HighestUID = 1400; Attrs = l.search_s(BaseDn,ldap.SCOPE_ONELEVEL,