Wrong placeholder names for HOOKS
I want to create hook with 3 arguments: %mail% %cn% %givenName%
When I debug that in script on creation posixAccount for user: mail: testuser@something.dom givenName: Test sn: User cn: Test User (those all attributes are correct and checked with ApacheDirectoryStudio after FD creation of user)
But for hook: /somepath/myscript.php %mail% %cn% %givenName% I am receiving this: print_r($argv);
Array{ [0] => '/somepath/myscript.php', [1] => 'testuser@something.dom', [2] => 'Test User', [3] => 'User' }
Like you see, I have got sn instead of givenName
Maybe you inverted sn and givenName for hooks ? I didn't check about %sn% is it correct or it showing value of givenName attribute.
Thanks,
Aleksandar
(from redmine: issue id 4892, created on 2016-06-20, closed on 2016-06-21)
- Relations:
- relates #4898
- Custom Fields:
- Bug in version: 1.0.11