[Owncloud] Problems in Shibboleth authentication in ownCloud 6.
Sérgio Afonso
safonso at sp.up.pt
Mon Dec 16 17:47:46 UTC 2013
Hya,
In the process of trying to solve the issue with Shibboleth
authentication in Owncloud 6 with app user_servervars, I tried to debug
some of the OC_* methods called by the app.
I put this lines inside the code:
OC_Log::write('servervars', \OCP\User::getUsers("", 10,
0), OC_Log::DEBUG);
OC_Log::write('servervars',
OC_User::userExists("sergionunoafonso at xx.up.pt"), OC_Log::DEBUG);
OC_Log::write('servervars',
\OCP\User::userExists("sergionunoafonso at xx.up.pt"), OC_Log::DEBUG);
And after a successful authentication I see the following in the logs:
{"app":"servervars","message":["safonso"],"level":0,"time":"2013-12-16T17:40:30+00:00"}
{"app":"servervars","message":"1","level":0,"time":"2013-12-16T17:40:30+00:00"}
{"app":"servervars","message":"1","level":0,"time":"2013-12-16T17:40:30+00:00"}
I am a little confused here.. If getUsers only tells me I have one user
(safonso) which is true, then why the methods OC_User::userExists and
\OCP\User::userExists called with the user "sergionunoafonso at xx.up.pt"
is telling me the user exists?
Can anyone explain this behavior?
Cheers,
Sérgio
On 12/13/2013 03:04 PM, Sérgio Afonso wrote:
> Hya *,
>
> I had ownCloud 5.0.13 running for some time and working well with the
> 3rd party app user_servervars:
>
> http://apps.owncloud.com/content/show.php/user_servervars?content=158863
>
> Yesterday I installed ownCloud 6.0 and I am having an hard time trying
> to get this user_servervars to work in the same way as it did in
> ownCloud 5.
>
> From the logs, it seems that the authentication process is working
> fine, but then when it does a call to OC_User::userExists($uid), it
> seems to return true, even though I can't find any user created on the
> table oc_users from the ownCloud DB.
>
> I was wondering if anyone has already got Shibboleth authentication
> working in ownCloud 6.0 and if can gimme some hints on where I should
> look.
>
> Cheers,
> Sérgio
>
> --
> SP/TIC
> Sérgio Afonso
> safonso at sp.up.pt <mailto:safonso at sp.up.pt> | (+351) 220 408 546 |
> Ext. 8546
>
> Unidade de Administração de Sistemas
> SERVIÇO DE TECNOLOGIAS DE INFORMAÇÃO E COMUNICAÇÃO
> *UNIVERSIDADE DO PORTO - SERVIÇOS PARTILHADOS*
> www.sp.up.pt <http://www.sp.up.pt> | helpdesk at up.pt
> <mailto:helpdesk at up.pt> | (+351) 220 408 888
>
>
>
> _______________________________________________
> Owncloud mailing list
> Owncloud at kde.org
> https://mail.kde.org/mailman/listinfo/owncloud
--
SP/TIC
Sérgio Afonso
safonso at sp.up.pt <mailto:safonso at sp.up.pt> | (+351) 220 408 546 |
Ext. 8546
Unidade de Administração de Sistemas
SERVIÇO DE TECNOLOGIAS DE INFORMAÇÃO E COMUNICAÇÃO
*UNIVERSIDADE DO PORTO - SERVIÇOS PARTILHADOS*
www.sp.up.pt <http://www.sp.up.pt> | helpdesk at up.pt
<mailto:helpdesk at up.pt> | (+351) 220 408 888
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20131216/d147c927/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 6497 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20131216/d147c927/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stsic.png
Type: image/png
Size: 6497 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20131216/d147c927/attachment-0001.png>
More information about the Owncloud
mailing list