Changeset 1105 for pykota/trunk/setup.py

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

PyKota now tries to add its attributes intelligently in existing LDAP
directories.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/setup.py

    r1095 r1105  
    2323# 
    2424# $Log$ 
     25# Revision 1.21  2003/07/28 09:11:12  jalet 
     26# PyKota now tries to add its attributes intelligently in existing LDAP 
     27# directories. 
     28# 
    2529# Revision 1.20  2003/07/23 16:51:32  jalet 
    2630# waitprinter.sh is now included to prevent PyKota from asking the 
     
    241245            sys.stderr.write("INSTALLATION ABORTED FOR SECURITY REASONS.\n") 
    242246            sys.exit(-1) 
     247             
     248        # warns for new LDAP fields     
     249        if sb.get("storagebackend") == "ldapstorage" :     
     250            newuser = conf.getGlobalOption("newuser", ignore=1) 
     251            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") 
     255                sys.stderr.write("You can look at the conf/pykota.conf.sample file for examples.\n") 
     256                sys.stderr.write("YOU HAVE TO DO THESE MODIFICATIONS MANUALLY, AND RESTART THE INSTALLATION.\n") 
     257                sys.stderr.write("INSTALLATION ABORTED BECAUSE CONFIGURATION INCOMPLETE.\n") 
     258                sys.exit(-1) 
    243259         
    244260    # change files permissions