Something went wrong while setting issue due date.
Next ID hook feature is broken
Closed
Next ID hook feature is broken
Description
an external script used for getting the next uid/gidnuimber could'nt be called
Distribution Name and Version
Debian stretch
FusionDirectory Version
1.3
PHP version used
php7
Origin of php packages
root@mc-pas-qal:/home/spreaduser# dpkg -l fusiondirectory
Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder
| État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements
|/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais)
||/ Nom Version Architecture Description
+++-===================================-======================-======================-============================================================================
ii fusiondirectory 1.3-2~jenkinsbuild64 all Web Based LDAP Administration Program
root@mc-pas-qal:/home/spreaduser#
Steps to Reproduce
- set a script or command that could be called by apache user in next id hook inside posix plugin
- create an account with posix component ( not force uid gid) just set a primary group
- click on ok
Expected behavior:
The script should be called by return the next id
root@mc-pas-qal:/home/spreaduser# su - www-data
$ /tmp/get-next-id.sh
1506
Actual behavior:
a non critic error occurs : "«nextIdHook» n’est pas disponible. Utilisation de la base par défaut !"
Reproduces how often: 100%
** additional information ** on : https://documentation.fusiondirectory.org/en/documentation/admin_installation/core_configuration I see :
Next id hook: Defines a script to be called for finding the next free id for users or groups externally.
The script will receive concerned dn as first argument, and 'uid' or 'gid' as second argument, it should output a single number to use as uidNumber or gidNumber.
why dn is submit as argument