Changeset 1111 for pykota/trunk/setup.py

Show
Ignore:
Timestamp:
07/29/03 11:54:03 (21 years ago)
Author:
jalet
Message:

Added configurable LDAP mail attribute support

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/setup.py

    r1105 r1111  
    2323# 
    2424# $Log$ 
     25# Revision 1.22  2003/07/29 09:54:03  jalet 
     26# Added configurable LDAP mail attribute support 
     27# 
    2528# Revision 1.21  2003/07/28 09:11:12  jalet 
    2629# PyKota now tries to add its attributes intelligently in existing LDAP 
     
    248251        # warns for new LDAP fields     
    249252        if sb.get("storagebackend") == "ldapstorage" :     
     253            usermail = conf.getGlobalOption("usermail", ignore=1) 
    250254            newuser = conf.getGlobalOption("newuser", ignore=1) 
    251255            newgroup = conf.getGlobalOption("newgroup", ignore=1) 
    252             if not (newuser and newgroup) : 
    253                 sys.stderr.write("From version 1.14 on, PyKota LDAP Support needs two additional configuration fields.\n") 
    254                 sys.stderr.write("Please put the 'newuser' and 'newgroup' configuration fields in a [global] section in /etc/pykota/pykota.conf\n") 
     256            if not (usermail and newuser and newgroup) : 
     257                sys.stderr.write("From version 1.14 on, PyKota LDAP Support needs three additional configuration fields.\n") 
     258                sys.stderr.write("Please put the 'usermail', 'newuser' and 'newgroup' configuration fields in a\n[global] section in /etc/pykota/pykota.conf\n") 
    255259                sys.stderr.write("You can look at the conf/pykota.conf.sample file for examples.\n") 
    256260                sys.stderr.write("YOU HAVE TO DO THESE MODIFICATIONS MANUALLY, AND RESTART THE INSTALLATION.\n")