<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hya,<br>
<br>
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.<br>
<br>
I put this lines inside the code:<br>
<br>
OC_Log::write('servervars', \OCP\User::getUsers("",
10, 0), OC_Log::DEBUG);<br>
OC_Log::write('servervars',
OC_User::userExists(<a class="moz-txt-link-rfc2396E" href="mailto:sergionunoafonso@xx.up.pt">"sergionunoafonso@xx.up.pt"</a>), OC_Log::DEBUG);<br>
OC_Log::write('servervars',
\OCP\User::userExists(<a class="moz-txt-link-rfc2396E" href="mailto:sergionunoafonso@xx.up.pt">"sergionunoafonso@xx.up.pt"</a>), OC_Log::DEBUG);<br>
<br>
And after a successful authentication I see the following in the
logs:<br>
<br>
{"app":"servervars","message":["safonso"],"level":0,"time":"2013-12-16T17:40:30+00:00"}<br>
{"app":"servervars","message":"1","level":0,"time":"2013-12-16T17:40:30+00:00"}<br>
{"app":"servervars","message":"1","level":0,"time":"2013-12-16T17:40:30+00:00"}<br>
<br>
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
<a class="moz-txt-link-rfc2396E" href="mailto:sergionunoafonso@xx.up.pt">"sergionunoafonso@xx.up.pt"</a> is telling me the user exists?<br>
<br>
Can anyone explain this behavior?<br>
<br>
Cheers,<br>
Sérgio<br>
<br>
<br>
<div class="moz-cite-prefix">On 12/13/2013 03:04 PM, Sérgio Afonso
wrote:<br>
</div>
<blockquote cite="mid:52AB21E7.1060202@sp.up.pt" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Hya *,<br>
<br>
I had ownCloud 5.0.13 running for some time and working well with
the 3rd party app user_servervars:<br>
<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<a moz-do-not-send="true"
href="http://apps.owncloud.com/content/show.php/user_servervars?content=158863">http://apps.owncloud.com/content/show.php/user_servervars?content=158863</a><br>
<br>
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.<br>
<br>
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.<br>
<br>
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.<br>
<br>
Cheers,<br>
Sérgio<br>
<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<div class="moz-signature">-- <br>
<title> SP/TIC </title>
<style>
table.tabela{
width: 100%;
font-family: Calibri, Arial, sans-serif;
border-collapse: collapse;
border-spacing: 0;
}
td.logotipo{
width: 110px;
vertical-align: top;
padding: 4px 0 0 0;
}
td.dados{
font-weight: normal;
font-size: 12px;
vertical-align: top;
color: #000000;
padding: 0;
margin: 0;
}
a{
color: #a29161;
}
span.nome{
font-size: 14px;
font-weight: bold;
}
</style>
<table class="tabela">
<tbody>
<tr>
<td class="logotipo"><img
src="cid:part2.07080608.02070405@sp.up.pt" height="70"
width="87"></td>
<td class="dados"> <span class="nome">Sérgio Afonso</span><br>
<a moz-do-not-send="true" href="mailto:safonso@sp.up.pt">safonso@sp.up.pt</a> | (+351)
220 408 546 | Ext. 8546 <br>
<br>
Unidade de Administração de Sistemas<br>
SERVIÇO DE TECNOLOGIAS DE INFORMAÇÃO E COMUNICAÇÃO<br>
<strong>UNIVERSIDADE DO PORTO - SERVIÇOS PARTILHADOS</strong><br>
<a moz-do-not-send="true" href="http://www.sp.up.pt">www.sp.up.pt</a> | <a
moz-do-not-send="true" href="mailto:helpdesk@up.pt">helpdesk@up.pt</a> | (+351)
220 408 888 </td>
</tr>
</tbody>
</table>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Owncloud mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Owncloud@kde.org">Owncloud@kde.org</a>
<a class="moz-txt-link-freetext" href="https://mail.kde.org/mailman/listinfo/owncloud">https://mail.kde.org/mailman/listinfo/owncloud</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<title>
SP/TIC
</title>
<style>
table.tabela{
width: 100%;
font-family: Calibri, Arial, sans-serif;
border-collapse: collapse;
border-spacing: 0;
}
td.logotipo{
width: 110px;
vertical-align: top;
padding: 4px 0 0 0;
}
td.dados{
font-weight: normal;
font-size: 12px;
vertical-align: top;
color: #000000;
padding: 0;
margin: 0;
}
a{
color: #a29161;
}
span.nome{
font-size: 14px;
font-weight: bold;
}
</style>
<table class="tabela">
<tbody>
<tr>
<td class="logotipo"><img
src="cid:part6.08060204.05060209@sp.up.pt" height="70"
width="87"></td>
<td class="dados">
<span class="nome">Sérgio Afonso</span><br>
<a href="mailto:safonso@sp.up.pt">safonso@sp.up.pt</a> | (+351)
220 408 546 | Ext. 8546 <br>
<br>
Unidade de Administração de Sistemas<br>
SERVIÇO DE TECNOLOGIAS DE INFORMAÇÃO E COMUNICAÇÃO<br>
<strong>UNIVERSIDADE DO PORTO - SERVIÇOS PARTILHADOS</strong><br>
<a href="http://www.sp.up.pt">www.sp.up.pt</a> | <a
href="mailto:helpdesk@up.pt">helpdesk@up.pt</a> | (+351)
220 408 888 </td>
</tr>
</tbody>
</table>
</div>
</body>
</html>