On Thu, 31 Dec 2015, Roland Gruber wrote:
> Hi Carl,
>
> On 30.12.2015 23:57, Carl G. Riches wrote:
>> We are migrating our 389 Directory Server/Samba 3 infrastructure to
>> Samba 4 and have run into a problem with LAMpro. We can display user
>> entries with LAMpro 5.1, but not LAMpro 5.2. The attached screenshots
>> show the difference: a user's attributes are listed when we use LAMpro
>> 5.1 but not when we use LAMpro 5.2.
>
> seems that something goes wrong when the module performs some LDAP searches.
>
> Do you see anything in your Apache error log?
>
> Please also try to set "PHP error reporting" in your LAM main
> configuration to "all".
>
> What PHP version do you use?
>
Thanks for looking at this, Roland. We are running LAMpro on RHEL 6.5
with PHP 5.3.3 and Apache 2.2.15.
After setting "PHP error reporting" to "all" and repeating the steps
needed to raise the error messages, this PHP error was displayed (and
written to the web server error log):
Fatal error: Uncaught exception 'Exception' with message
'DateInterval::__construct(): Unknown or bad format (PT13054866167S)' in
/home/web/intranet/html/apps/LAMpro/lib/modules/windowsUser.inc on line
2918 Exception: DateInterval::__construct(): Unknown or bad format
(PT13054866167S) in
/home/web/intranet/html/apps/LAMpro/lib/modules/windowsUser.inc on line
2918 Call Stack: 0.0001 635376 1. {main}()
/home/web/intranet/html/apps/LAMpro/templates/account/edit.php:0 0.4051
6348584 2. accountContainer->continue_main()
/home/web/intranet/html/apps/LAMpro/templates/account/edit.php:120 0.4058
6391096 3. accountContainer->printModuleContent()
/home/web/intranet/html/apps/LAMpro/lib/modules.inc:950 0.6181 6550856 4.
call_user_func() /home/web/intranet/html/apps/LAMpro/lib/modules.inc:1036
0.6181 6550856 5. windowsUser->display_html_attributes()
/home/web/intranet/html/apps/LAMpro/lib/modules.inc:1036 1.2165 6751312 6.
windowsUser->formatPwdLastSet()
/home/web/intranet/html/apps/LAMpro/lib/modules/windowsUser.inc:1058
1.2165 6751312 7. windowsUser->formatFileTime()
/home/web/intranet/html/apps/LAMpro/lib/modules/windowsUser.inc:2874
1.2166 6752840 8. DateInterval->__construct()
/home/web/intranet/html/apps/LAMpro/lib/modules/windowsUser.inc:2918
It looks as if it's having trouble formatting the value of pwdLastSet.
Here is a sample value from one user:
pwdLastSet: 130548661670000000
That value should translate to:
Epoch/Unix time: 1410392567
GMT: Wed, 10 Sep 2014 23:42:47 GMT
PST8PDT: 9/10/2014, 4:42:47 PM
I've attached a list of the User schema attributes we're using for our
users.
Thanks,
Carl
------------------------------------------------------------------------------
_______________________________________________
Lam-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lam-public