with the rpm nethserver-sssd-1.0.8-1.78.gf4e2f99.ns7.noarch in nethforge-testing I have this bug when I expand the template
ERROR in /etc/e-smith/templates//etc/phpldapadmin/config.inc.php/08Settings_of_Ldap_server: Program fragment delivered error <<Can't locate object method "bindUser" via package "NethServer::SSSD" at /etc/e-smith/templates//etc/phpldapadmin/config.inc.php/08Settings_of_Ldap_server line 21.>> at template line 11
ERROR: Template processing failed for //etc/phpldapadmin/config.inc.php: 1 fragment generated errors
at /sbin/e-smith/expand-template line 45.
the line 21 is : my $bindUser = $sssd->bindUser();
of course when I downgrade the rpm to nethserver-sssd-1.0.8-1.ns7.noarch, the error disappeared
I have had someting workable with samba4 AD even without specifying the bindDN and the bindPassword for the user administrator. I can change settings with phpldapadmin
But the user admin has still not enough right to do it with phpldapadmin in openldap :-?
[root@NS7DEV ~]# ll /etc/e-smith/events/actions/nethserver-directory-createadmins
ls: cannot access /etc/e-smith/events/actions/nethserver-directory-createadmins: No such file or directory
Yes, however I want to define clearly what is its return value. If you agree we can define it as follow:
if sssd/BindUser prop is defined and not empty, return its value
if LDAP provider extract the value from the first part of bindDN() return value. For instance if bindDN() returns uid=ldapservice,dc=directory,dc=nh, bindUser() returns ldapservice
if AD provider, check the bindDN() return value syntax. AD allows (a) DN syntax, (b) NT account name (DOMAIN\sAMAccountName) and (c) UPN names. If (a), apply case 2, if (b) return sAMAccountName, if (c) return everything before @.
if neither of the previous cases applies, return an empty string.
The full log message at /var/log/httpd-admin/error_log
[Thu Dec 01 18:32:15.556694 2016] [:error] [pid 2248] [client 192.168.12.25:56888] PHP Warning: call_user_func() expects parameter 1 to be a valid callback, no array or string given in /usr/share/nethesis/NethServer/Module/Account/User/UserAdapter.php on line 38, referer: https://ns7dev5:980/en-US/Dashboard
[Thu Dec 01 18:32:15.556739 2016] [:error] [pid 2248] [client 192.168.12.25:56888] PHP Fatal error: Call to a member function isReadOnly() on a non-object in /usr/share/nethesis/NethServer/Module/Account/User/UserAdapter.php on line 59, referer: https://ns7dev5:980/en-US/Dashboard