Changeset 3277

Show
Ignore:
Timestamp:
01/08/08 21:24:03 (16 years ago)
Author:
matt
Message:

Update LDAP installation instructions to note different paths for different distributions

Location:
pykota/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/docs/installation.sgml

    r3202 r3277  
    340340    $ cp pykota.schema /etc/ldap/schema 
    341341          </screen> 
     342          <note> 
     343            <title>Note</title> 
     344            <para> 
     345              If you are using a Red Hat-based system, substitute  
     346              <filename>/etc/openldap</filename> for  
     347              <filename>/etc/ldap</filename>. 
     348            </para> 
     349          </note> 
    342350          <note> 
    343351            <title>Note</title> 
     
    405413          </screen> 
    406414        </para> 
    407          
     415        <note> 
     416          <title>Note</title> 
     417          <para> 
     418          On Red Hat-based distros, use '/sbin/service ldap stop' and  
     419        '/sbin/service ldap start' instead. 
     420          </para> 
     421        </note> 
    408422        <para> 
    409423          With an <acronym>LDAP</acronym> backend, PyKota will need some branches 
  • pykota/trunk/initscripts/ldap/README.ldap

    r3259 r3277  
    3333        $ cp pykota.schema /etc/ldap/schema 
    3434        (no need to do this if you install from PyKota's Debian package) 
     35 
     36    NB: With OpenLDAP under Red Hat-based distros, where /etc/ldap is  
     37        referenced, substitute /etc/openldap. e.g.  
     38 
     39        $ cp pykota.schema /etc/openldap/schema 
    3540         
    3641    Then edit /etc/ldap/slapd.conf and add a line to     
     
    96101     
    97102        $ /etc/init.d/slapd stop 
    98          
     103     
    99104    Generate the index files :     
    100105     
     
    105110        $ /etc/init.d/slapd start 
    106111 
     112    NB: On Red Hat-based distros, use '/sbin/service ldap stop' and  
     113        '/sbin/service ldap start' instead. 
     114     
    107115pykota-sample.ldif : 
    108116 
  • pykota/trunk/pykota/config.py

    r3275 r3277  
    521521        return self.isTrue(self.getGlobalOption("disablehistory", ignore=1)) 
    522522             
     523<<<<<<< .mine 
     524======= 
    523525    def getUserNameToLower(self) :           
    524526        """Deprecated.""" 
    525527        return self.getGlobalOption("utolower", ignore=1) 
    526528         
     529>>>>>>> .r2547 
    527530    def getUserNameCase(self) : 
    528531        """Returns value for user name case: upper, lower or native""" 
     
    653656        """Returns the winbind separator's value if it is set, else None.""" 
    654657        return self.getGlobalOption("winbind_separator", ignore=1) 
     658 
     659    def getUserNameCase(self) : 
     660        """Returns value for user name case: upper, lower or native""" 
     661        validvalues = [ "upper", "lower", "native" ] 
     662        value = self.getGlobalOption("usercasename", ignore=1).strip().lower() 
     663        if value not in validvalues : 
     664            raise PyKotaConfigError, _("Option usercasename only supports values in %s") % str(validvalues) 
     665        return value 
    655666 
    656667    def getAccountBanner(self, printername) :