Tâche #32523
Scénario #11477: Faire fonctionner Infosquota (scripts) sur AmonEcole
Adapter le script /etc/cron.weekly/findfic
Status:
Fermé
Priority:
Normal
Assigned To:
Target version:
Start date:
05/18/2021
Due date:
% Done:
100%
Remaining (hours):
0.0
Description
Le script contient des recherches dans l'annuaire OpenLDAP qui ne sont pas compatibles AmonEcole...
Associated revisions
- /etc/cron.weekly/findfic : premier jet compatibilité Seth/AmonEcole
Ref: #32523
History
#1 Updated by Joël Cuissinat almost 2 years ago
- Recherche des partages
ldapsearch -x | grep -B 2 sambaShareDrive sambaShareGroup: DomainUsers sambaFilePath: /home/netlogon/icones sambaShareDrive: R: [ ... ]
CreoleRun "LDB_URL=/var/lib/samba/private/sam.ldb ldbsearch -S '(sambaShareDrive=*)' | grep -B2 sambaShareGroup" addc sambaFilePath: /home/workgroups/commun sambaShareDrive: T: sambaShareGroup: DomainUsers [ ... ]
Au passage le code actuel n'est pas très "solide" !!!
#2 Updated by Joël Cuissinat almost 2 years ago
- recherche des utilisateurs
root@scribe:~# ldapsearch -x cn=DomainUsers|grep memberUid|awk '{print $2}' admin 6a.01 6a.02 [...]
root@amonecole:~# CreoleRun "LDB_URL=/var/lib/samba/private/sam.ldb ldbsearch -S '(objectClass=inetOrgPerson)' uid" addc | grep ^uid |awk '{print $2}' prof admin
#3 Updated by Klaas TJEBBES almost 2 years ago
- Status changed from Nouveau to En cours
#4 Updated by Klaas TJEBBES almost 2 years ago
- Assigned To set to Klaas TJEBBES
#5 Updated by Klaas TJEBBES almost 2 years ago
- Status changed from En cours to Résolu
#6 Updated by Joël Cuissinat almost 2 years ago
- Status changed from Résolu to Fermé
- % Done changed from 0 to 100
- Remaining (hours) set to 0.0
OK