Title: SP/TIC
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("[email protected]"), OC_Log::DEBUG);
               OC_Log::write('servervars', \OCP\User::userExists("[email protected]"), 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 "[email protected]" 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

--
Sérgio Afonso
[email protected]  |  (+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  |  [email protected]  |  (+351) 220 408 888


_______________________________________________
Owncloud mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/owncloud

--
SP/TIC
Sérgio Afonso
[email protected]  |  (+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  |  [email protected]  |  (+351) 220 408 888

_______________________________________________
Owncloud mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/owncloud

Reply via email to