Show
Ignore:
Timestamp:
11/22/04 22:53:38 (19 years ago)
Author:
jalet
Message:

Added the reject_unknown directive to pykota.conf to reject user/group
creation if user or group is unknown to the system

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/config.py

    r1916 r1956  
    2222# 
    2323# $Log$ 
     24# Revision 1.57  2004/11/22 21:53:38  jalet 
     25# Added the reject_unknown directive to pykota.conf to reject user/group 
     26# creation if user or group is unknown to the system 
     27# 
    2428# Revision 1.56  2004/11/15 15:23:07  jalet 
    2529# Strips spaces just in case 
     
    558562        return self.isTrue(self.getGlobalOption("utolower", ignore=1)) 
    559563         
     564    def getRejectUnknown(self) :           
     565        """Returns 1 if we want to reject the creation of unknown users or groups, else 0.""" 
     566        return self.isTrue(self.getGlobalOption("reject_unknown", ignore=1)) 
     567         
    560568    def getWinbindSeparator(self) :           
    561569        """Returns the winbind separator's value if it is set, else None."""