Changeset 3277 for pykota/trunk
- Timestamp:
- 01/08/08 21:24:03 (17 years ago)
- Location:
- pykota/trunk
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/docs/installation.sgml
r3202 r3277 340 340 $ cp pykota.schema /etc/ldap/schema 341 341 </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> 342 350 <note> 343 351 <title>Note</title> … … 405 413 </screen> 406 414 </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> 408 422 <para> 409 423 With an <acronym>LDAP</acronym> backend, PyKota will need some branches -
pykota/trunk/initscripts/ldap/README.ldap
r3259 r3277 33 33 $ cp pykota.schema /etc/ldap/schema 34 34 (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 35 40 36 41 Then edit /etc/ldap/slapd.conf and add a line to … … 96 101 97 102 $ /etc/init.d/slapd stop 98 103 99 104 Generate the index files : 100 105 … … 105 110 $ /etc/init.d/slapd start 106 111 112 NB: On Red Hat-based distros, use '/sbin/service ldap stop' and 113 '/sbin/service ldap start' instead. 114 107 115 pykota-sample.ldif : 108 116 -
pykota/trunk/pykota/config.py
r3275 r3277 521 521 return self.isTrue(self.getGlobalOption("disablehistory", ignore=1)) 522 522 523 <<<<<<< .mine 524 ======= 523 525 def getUserNameToLower(self) : 524 526 """Deprecated.""" 525 527 return self.getGlobalOption("utolower", ignore=1) 526 528 529 >>>>>>> .r2547 527 530 def getUserNameCase(self) : 528 531 """Returns value for user name case: upper, lower or native""" … … 653 656 """Returns the winbind separator's value if it is set, else None.""" 654 657 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 655 666 656 667 def getAccountBanner(self, printername) :