Ignore:
Timestamp:
10/22/09 11:07:40 (3 years ago)
Author:
tschmitt
Message:
  • Release-Nr. in dist.conf auf 4.0.4 aktualisiert.
  • smb.conf-Anpassungen:
    • "unix charset = UTF8" und "ldap ssl = Off" im globalen Bereich ergänzt.
    • "write list = @@administrator@@,@@@teachersgroup@@" in students share geändert.
  • "TLS_REQCERT never" in /etc/ldap/ldap.conf ergänzt, neue dynamische Vorlage für ldap.conf hinzugefügt (#144).
  • Apache's UserDir? Statement in /etc/apache2/mods-enabled/userdir.conf gefixt (public_html nur für Lehrer) (#143).
  • ldap-Abfrage für Maschinenaccounts in helperfunctions.sh gefixt (#116).
  • Fehlende Prüfung auf existierenden user account in wimport.sh ergänzt (#137).
  • Windows 7 Registry-Patch-Beispiel-Datei hinzugefügt.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/linuxmuster-base/trunk/share/scripts/helperfunctions.sh

    r497 r549  
    660660  RET=`psql -U ldap -d ldap -t -c "select uid from posix_account where firstname = 'Exam';"` 
    661661  if [ -n "$RET" ]; then 
    662                 echo "$RET" 
    663     return 0 
    664   else 
    665     return 1 
     662                echo "$RET" | awk '{ print $1 }' 
     663   return 0 
     664  else 
     665   return 1 
    666666  fi 
    667667} 
     
    670670hosts_ldap() { 
    671671  unset RET 
    672   RET=`ldapsearch -c -LL -b ou=accounts,$basedn -x filter cn=ExamAccount | grep uid= | awk -F= '{ print $2 }' | awk -F, '{ print $1 }'` 
     672  RET=`ldapsearch -x -ZZ -h localhost "(cn=ExamAccount)" | grep ^uid\: | awk '{ print $2 }'` 
    673673  if [ -n "$RET" ]; then 
    674674                echo "$RET" 
     
    684684  RET=`psql -U ldap -d ldap -t -c "select uid from posix_account where firstname = 'Computer';"` 
    685685  if [ -n "$RET" ]; then 
     686                 echo "$RET" | awk '{ print $1 }' 
     687   return 0 
     688  else 
     689   return 1 
     690  fi 
     691} 
     692 
     693# get all host accounts from ldap 
     694machines_ldap() { 
     695  unset RET 
     696  RET=`ldapsearch -x -ZZ -h localhost "(cn=Computer)" | grep ^uid\: | awk '{ print $2 }'` 
     697  if [ -n "$RET" ]; then 
    686698                echo "$RET" 
    687699    return 0 
     
    691703} 
    692704 
    693 # get all host accounts from ldap 
    694 machines_ldap() { 
    695   unset RET 
    696   RET=`ldapsearch -c -LL -b ou=machines,$basedn -x filter cn=Computer | grep uid= | awk -F= '{ print $2 }' | awk -F, '{ print $1 }'` 
     705# get all user accounts 
     706accounts_db() { 
     707  unset RET 
     708  RET=`psql -U ldap -d ldap -t -c "select uid from posix_account where firstname <> 'Computer' and firstname <> 'Exam';"` 
     709  if [ -n "$RET" ]; then 
     710                 echo "$RET" | awk '{ print $1 }' 
     711   return 0 
     712  else 
     713   return 1 
     714  fi 
     715} 
     716 
     717# get all user accounts from ldap 
     718accounts_ldap() { 
     719  unset RET 
     720  RET=`ldapsearch -x -ZZ -h localhost "(&(!(cn=Computer))(!(cn=ExamAccount)))" | grep ^uid\: | awk '{ print $2 }'` 
    697721  if [ -n "$RET" ]; then 
    698722                echo "$RET" 
Note: See TracChangeset for help on using the changeset viewer.