X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=ud-passchk;h=6a7865a85a74afb5eab3712943060b65caaf04f0;hp=e7c3cb79eef4c690886e678c74593dd96b5949c4;hb=a6fb69805c3999a85c064a96c93417bb1c284c5c;hpb=3ec1386cd62200a1d86fc72168c2aa1fe305bdd8 diff --git a/ud-passchk b/ud-passchk index e7c3cb7..6a7865a 100755 --- a/ud-passchk +++ b/ud-passchk @@ -2,7 +2,7 @@ # -*- mode: python -*- # Checks the passwd file to make sure all entries are in the directory -import string, ldap, getopt, sys, os; +import ldap, getopt, sys, os; from userdir_ldap import *; def PassCheck(l,File,HomePrefix): @@ -23,7 +23,7 @@ def PassCheck(l,File,HomePrefix): if Line == "": break; - Split = string.split(Line,":"); + Split = Line.split(":") if UIDMap.has_key(Split[0]) == 0: print Line, continue;