<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 20, 2012 at 9:58 AM, Itamar Heim <span dir="ltr"><<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 11/20/2012 09:56 AM, Cristian Falcas wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
<br>
<br>
On Tue, Nov 20, 2012 at 9:42 AM, Yair Zaslavsky <<a href="mailto:yzaslavs@redhat.com" target="_blank">yzaslavs@redhat.com</a><br></div><div class="im">
<mailto:<a href="mailto:yzaslavs@redhat.com" target="_blank">yzaslavs@redhat.com</a>>> wrote:<br>
<br>
<br>
<br>
On 11/20/2012 09:05 AM, Cristian Falcas wrote:<br>
<br>
<br>
<br>
<br>
On Tue, Nov 20, 2012 at 8:36 AM, Yair Zaslavsky<br>
<<a href="mailto:yzaslavs@redhat.com" target="_blank">yzaslavs@redhat.com</a> <mailto:<a href="mailto:yzaslavs@redhat.com" target="_blank">yzaslavs@redhat.com</a>><br></div><div><div class="h5">
<mailto:<a href="mailto:yzaslavs@redhat.com" target="_blank">yzaslavs@redhat.com</a> <mailto:<a href="mailto:yzaslavs@redhat.com" target="_blank">yzaslavs@redhat.com</a>>>> wrote:<br>
<br>
<br>
<br>
On 11/20/2012 12:39 AM, Cristian Falcas wrote:<br>
<br>
<br>
<br>
On Mon, Nov 19, 2012 at 10:53 PM, Itamar Heim<br>
<<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a> <mailto:<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a>><br>
<mailto:<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a> <mailto:<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a>>><br>
<mailto:<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a> <mailto:<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a>><br>
<mailto:<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a> <mailto:<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a>>>>> wrote:<br>
<br>
On 11/19/2012 11:29 AM, Vinzenz Feenstra wrote:<br>
<br>
On 11/19/2012 10:01 AM, Cristian Falcas wrote:<br>
<br>
Hi,<br>
<br>
I'm trying to add some users to ovirt<br>
using an AD.<br>
<br>
This is the configuration I used for a<br>
mediawiki<br>
site, which is<br>
working correctly:<br>
$wgAuth = new LdapAuthenticationPlugin();<br>
$wgLDAPUseLocal = true;<br>
$wgLDAPDomainNames = array( "a_domain");<br>
$wgLDAPServerNames = array(<br>
"a_domain"=>"<a href="http://site.example.com" target="_blank">site.example.com</a> <<a href="http://site.example.com" target="_blank">http://site.example.com</a>><br>
<<a href="http://site.example.com" target="_blank">http://site.example.com</a>><br>
<<a href="http://site.example.com" target="_blank">http://site.example.com</a>><br>
<<a href="http://site.example.com" target="_blank">http://site.example.com</a>>");<br>
<br>
$wgLDAPEncryptionType = array(<br>
"a_domain"=>"clear");<br>
$wgLDAPSearchStrings = array(<br></div></div>
"a_domain"=>"rom_domain\\USER-<u></u>______NAME");<br>
$wgLDAPBaseDNs = array(<br>
"a_domain"=>"dc=company,dc=___<u></u>___com");<div><div class="h5"><br>
<br>
<br>
<br>
Those are the commands I tried using:<br>
engine-manage-domains -action=add<br>
-domain=<a href="http://site.example.com" target="_blank">site.example.com</a> <<a href="http://site.example.com" target="_blank">http://site.example.com</a>><br>
<<a href="http://site.example.com" target="_blank">http://site.example.com</a>><br>
<<a href="http://site.example.com" target="_blank">http://site.example.com</a>><br>
<<a href="http://site.example.com" target="_blank">http://site.example.com</a>><br>
-provider=ActiveDirectory<br>
-user=<a href="http://user.name" target="_blank">user.name</a> <<a href="http://user.name" target="_blank">http://user.name</a>><br>
<<a href="http://user.name" target="_blank">http://user.name</a>> <<a href="http://user.name" target="_blank">http://user.name</a>><br>
<<a href="http://user.name" target="_blank">http://user.name</a>> -interactive<br>
<br>
<br>
engine-manage-domains -action=add<br>
-domain=a_domain<br>
-provider=ActiveDirectory<br>
-user=<a href="mailto:user.name@company.com" target="_blank">user.name@company.com</a><br>
<mailto:<a href="mailto:user.name@company.com" target="_blank">user.name@company.com</a>> <mailto:<a href="mailto:user.name@company.com" target="_blank">user.name@company.com</a><br>
<mailto:<a href="mailto:user.name@company.com" target="_blank">user.name@company.com</a>><u></u>><br>
<mailto:<a href="mailto:user.name@company.com" target="_blank">user.name@company.com</a><br>
<mailto:<a href="mailto:user.name@company.com" target="_blank">user.name@company.com</a>><br>
<mailto:<a href="mailto:user.name@company.com" target="_blank">user.name@company.com</a><br>
<mailto:<a href="mailto:user.name@company.com" target="_blank">user.name@company.com</a>><u></u>>__><br>
<mailto:<a href="mailto:user.name@company.com" target="_blank">user.name@company.com</a><br>
<mailto:<a href="mailto:user.name@company.com" target="_blank">user.name@company.com</a>><br>
<mailto:<a href="mailto:user.name@company.com" target="_blank">user.name@company.com</a><br>
<mailto:<a href="mailto:user.name@company.com" target="_blank">user.name@company.com</a>><u></u>><br>
<br>
<mailto:<a href="mailto:user.name@company.com" target="_blank">user.name@company.com</a><br>
<mailto:<a href="mailto:user.name@company.com" target="_blank">user.name@company.com</a>><br>
<mailto:<a href="mailto:user.name@company.com" target="_blank">user.name@company.com</a><br></div></div>
<mailto:<a href="mailto:user.name@company.com" target="_blank">user.name@company.com</a>><u></u>>__>__> -interactive<br>
<br>
<br>
engine-manage-domains -action=add<br>
-domain=a_domain<br>
-provider=ActiveDirectory<br>
-user=user.name@site.example._<u></u>_____com<div class="im"><br>
<mailto:<a href="mailto:user.name@site" target="_blank">user.name@site</a>.<br>
<mailto:<a href="mailto:user.name@site" target="_blank">user.name@site</a>.>__<a href="http://examp__le.com" target="_blank">exam<u></u>p__le.com</a> <<a href="http://example.com" target="_blank">http://example.com</a>><br>
<mailto:<a href="mailto:user.name@site." target="_blank">user.name@site.</a>__<a href="http://example.com" target="_blank">examp<u></u>le.com</a><br>
<mailto:<a href="mailto:user.name@site.example.com" target="_blank">user.name@site.<u></u>example.com</a>>>><br></div>
<mailto:<a href="mailto:user.name@site" target="_blank">user.name@site</a><br>
<mailto:<a href="mailto:user.name@site" target="_blank">user.name@site</a>>.<br>
<mailto:<a href="mailto:user.name@site" target="_blank">user.name@site</a><br>
<mailto:<a href="mailto:user.name@site" target="_blank">user.name@site</a>>.>__<a href="http://exam__p__le.com" target="_blank">exa<u></u>m__p__le.com</a><br>
<<a href="http://examp__le.com" target="_blank">http://examp__le.com</a>> <<a href="http://example.com" target="_blank">http://example.com</a>><div><div class="h5"><br>
<br>
<br>
<mailto:<a href="mailto:user.name@site" target="_blank">user.name@site</a>.<br>
<mailto:<a href="mailto:user.name@site" target="_blank">user.name@site</a>.>__<a href="http://examp__le.com" target="_blank">exam<u></u>p__le.com</a> <<a href="http://example.com" target="_blank">http://example.com</a>><br>
<mailto:<a href="mailto:user.name@site." target="_blank">user.name@site.</a>__<a href="http://example.com" target="_blank">examp<u></u>le.com</a><br>
<mailto:<a href="mailto:user.name@site.example.com" target="_blank">user.name@site.<u></u>example.com</a>>>>> -interactive<br>
<br>
<br>
You don't add an user this way. You add the<br>
domain. You<br>
have to<br>
pass the<br>
domain admin user and the domain admin password.<br>
<br>
<br>
any domain user will do, doesn't have to be an admin.<br>
what does the log say?<br>
<br>
<br>
Then you can use the domain within the engine.<br>
e.g. search<br>
users, add<br>
access rights for vms etc.<br>
Even login to the engine and assigning rights<br>
within<br>
the engine<br>
you can<br>
handle from the engine itself.<br>
<br>
Regards,<br>
<br>
And the output on all tries:<br>
Enter password:<br>
<br>
Error: Authentication Failed. Please<br>
verify the fully<br>
qualified domain<br>
name that is used for authentication is<br>
correct..<br>
Problematic domain<br>
is: domain_used_in_command<br>
Failure while applying Kerberos<br>
configuration. Details:<br>
Authentication<br>
Failed. Please verify the fully qualified<br>
domain<br>
name that<br>
is used for<br>
authentication is correct.<br>
<br>
Can someone help me with the correct<br>
parameters?<br>
<br>
<br>
Best regards,<br>
Cristian Falcas<br>
<br>
<br>
<br></div></div>
______________________________<u></u>_______________________<div class="im"><br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a> <mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>> <mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
</div>
<mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>>> <mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>><br>
<mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a> <mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>>>><br>
<a href="http://lists.ovirt.org/______mailman/listinfo/users" target="_blank">http://lists.ovirt.org/______<u></u>mailman/listinfo/users</a><br>
<<a href="http://lists.ovirt.org/____mailman/listinfo/users" target="_blank">http://lists.ovirt.org/____<u></u>mailman/listinfo/users</a>><div class="im"><br>
<<a href="http://lists.ovirt.org/____mailman/listinfo/users" target="_blank">http://lists.ovirt.org/____<u></u>mailman/listinfo/users</a><br>
<<a href="http://lists.ovirt.org/__mailman/listinfo/users" target="_blank">http://lists.ovirt.org/__<u></u>mailman/listinfo/users</a>>><br>
<br>
<br>
<br>
<<a href="http://lists.ovirt.org/____mailman/listinfo/users" target="_blank">http://lists.ovirt.org/____<u></u>mailman/listinfo/users</a><br>
<<a href="http://lists.ovirt.org/__mailman/listinfo/users" target="_blank">http://lists.ovirt.org/__<u></u>mailman/listinfo/users</a>><br>
<<a href="http://lists.ovirt.org/__mailman/listinfo/users" target="_blank">http://lists.ovirt.org/__<u></u>mailman/listinfo/users</a><br>
<<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/<u></u>mailman/listinfo/users</a>>>><br>
<br>
<br>
<br>
--<br>
Regards,<br>
<br>
Vinzenz Feenstra | Senior Software Engineer<br>
RedHat Engineering Virtualization R & D<br>
Phone: <a href="tel:%2B420%20532%20294%20625" value="+420532294625" target="_blank">+420 532 294 625</a><br>
<tel:%2B420%20532%20294%20625> <tel:%2B420%20532%20294%20625><br>
<tel:%2B420%20532%20294%20625><br>
<br>
IRC: vfeenstr or evilissimo<br>
<br>
Better technology. Faster innovation. Powered<br>
by community<br>
collaboration.<br>
See how it works at <a href="http://redhat.com" target="_blank">redhat.com</a><br>
<<a href="http://redhat.com" target="_blank">http://redhat.com</a>> <<a href="http://redhat.com" target="_blank">http://redhat.com</a>><br></div>
<<a href="http://redhat.com" target="_blank">http://redhat.com</a>><br>
<br>
<br>
<br>
<br>
______________________________<u></u>_______________________<div class="im"><br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a> <mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>> <mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
</div>
<mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>>> <mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>><br>
<mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a> <mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>>>><br>
<a href="http://lists.ovirt.org/______mailman/listinfo/users" target="_blank">http://lists.ovirt.org/______<u></u>mailman/listinfo/users</a><br>
<<a href="http://lists.ovirt.org/____mailman/listinfo/users" target="_blank">http://lists.ovirt.org/____<u></u>mailman/listinfo/users</a>><div class="im"><br>
<<a href="http://lists.ovirt.org/____mailman/listinfo/users" target="_blank">http://lists.ovirt.org/____<u></u>mailman/listinfo/users</a><br>
<<a href="http://lists.ovirt.org/__mailman/listinfo/users" target="_blank">http://lists.ovirt.org/__<u></u>mailman/listinfo/users</a>>><br>
<br>
<<a href="http://lists.ovirt.org/____mailman/listinfo/users" target="_blank">http://lists.ovirt.org/____<u></u>mailman/listinfo/users</a><br>
<<a href="http://lists.ovirt.org/__mailman/listinfo/users" target="_blank">http://lists.ovirt.org/__<u></u>mailman/listinfo/users</a>><br>
<<a href="http://lists.ovirt.org/__mailman/listinfo/users" target="_blank">http://lists.ovirt.org/__<u></u>mailman/listinfo/users</a><br>
<<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/<u></u>mailman/listinfo/users</a>>>><br>
<br>
<br>
<br></div>
______________________________<u></u>_______________________<div class="im"><br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a> <mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>> <mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
</div>
<mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>>> <mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>><br>
<mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a> <mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>>>><br>
<a href="http://lists.ovirt.org/______mailman/listinfo/users" target="_blank">http://lists.ovirt.org/______<u></u>mailman/listinfo/users</a><br>
<<a href="http://lists.ovirt.org/____mailman/listinfo/users" target="_blank">http://lists.ovirt.org/____<u></u>mailman/listinfo/users</a>><br>
<<a href="http://lists.ovirt.org/____mailman/listinfo/users" target="_blank">http://lists.ovirt.org/____<u></u>mailman/listinfo/users</a><br>
<<a href="http://lists.ovirt.org/__mailman/listinfo/users" target="_blank">http://lists.ovirt.org/__<u></u>mailman/listinfo/users</a>>><br>
<br>
<br><div class="im">
<<a href="http://lists.ovirt.org/____mailman/listinfo/users" target="_blank">http://lists.ovirt.org/____<u></u>mailman/listinfo/users</a><br>
<<a href="http://lists.ovirt.org/__mailman/listinfo/users" target="_blank">http://lists.ovirt.org/__<u></u>mailman/listinfo/users</a>><br>
<<a href="http://lists.ovirt.org/__mailman/listinfo/users" target="_blank">http://lists.ovirt.org/__<u></u>mailman/listinfo/users</a><br>
<<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/<u></u>mailman/listinfo/users</a>>>><br>
<br>
<br>
<br>
<br>
Hi,<br>
<br>
This is the command I used (the same error is with<br>
-interactive<br>
parameter):<br>
<br>
engine-manage-domains -action=add -domain=<a href="http://example.com" target="_blank">example.com</a><br>
<<a href="http://example.com" target="_blank">http://example.com</a>><br>
<<a href="http://example.com" target="_blank">http://example.com</a>><br>
<<a href="http://example.com" target="_blank">http://example.com</a>> -provider=ActiveDirectory<br>
-user=user.name@a_domain<br>
<br>
-passwordFile=/tmp/pass<br>
<br>
[root@localhost ~]# cat /tmp/pass<br>
qwerty[root@localhost ~]#<br>
<br>
This is the log:<br>
<br>
2012-11-20 00:30:40,443 INFO<br>
<br></div>
[org.ovirt.engine.core.utils._<u></u>___kerberos.ManageDomains] Creating<div class="im"><br>
<br>
kerberos<br>
configuration for domain(s): <a href="http://example.com" target="_blank">example.com</a><br>
<<a href="http://example.com" target="_blank">http://example.com</a>> <<a href="http://example.com" target="_blank">http://example.com</a>><br>
<<a href="http://example.com" target="_blank">http://example.com</a>><br>
<br>
2012-11-20 00:30:40,525 INFO<br>
<br></div>
[org.ovirt.engine.core.utils._<u></u>___kerberos.ManageDomains]<div class="im"><br>
Successfully<br>
<br>
created kerberos configuration for domain(s):<br>
<a href="http://example.com" target="_blank">example.com</a> <<a href="http://example.com" target="_blank">http://example.com</a>><br>
<<a href="http://example.com" target="_blank">http://example.com</a>><br>
<<a href="http://example.com" target="_blank">http://example.com</a>><br>
<br>
2012-11-20 00:30:40,526 INFO<br>
<br></div>
[org.ovirt.engine.core.utils._<u></u>___kerberos.ManageDomains] Testing<div class="im"><br>
<br>
kerberos<br>
configuration for domain: <a href="http://example.com" target="_blank">example.com</a><br>
<<a href="http://example.com" target="_blank">http://example.com</a>> <<a href="http://example.com" target="_blank">http://example.com</a>><br>
<<a href="http://example.com" target="_blank">http://example.com</a>><br>
<br>
2012-11-20 00:30:40,830 ERROR<br>
<br></div>
[org.ovirt.engine.core.utils._<u></u>___kerberos.<u></u>KerberosConfigCheck]<div class="im"><br>
Error:<br>
<br>
exception message: Cannot locate KDC<br>
2012-11-20 00:30:40,851 ERROR<br>
<br></div>
[org.ovirt.engine.core.utils._<u></u>___kerberos.ManageDomains] Failure<div class="im"><br>
while<br>
<br>
testing domain <a href="http://example.com" target="_blank">example.com</a> <<a href="http://example.com" target="_blank">http://example.com</a>><br>
<<a href="http://example.com" target="_blank">http://example.com</a>><br>
<<a href="http://example.com" target="_blank">http://example.com</a>>. Details: Kerberos<br>
<br>
error. Please check log for further details.<br>
<br>
<br>
Hi, the error indicates you don't have kerberos configured.<br>
manage-domains validates by default using GSSAPI/Kerberos (if I<br>
understand correctly, this is equivalent to run ldapsearch<br>
with -Y<br>
gssapi option).<br>
I wonder if -x (simple authentication) will work for you as<br>
well (as<br>
manage-domains contains code for simple authentication as<br>
well).<br>
<br>
<br>
<br>
This is the ldapsearch command that works (it retrieves<br>
users)<br>
from the<br>
same machine:<br>
<br>
<br>
<br>
ldapsearch -H ldap://<a href="http://example.com" target="_blank">example.com</a> <<a href="http://example.com" target="_blank">http://example.com</a>><br>
<<a href="http://example.com" target="_blank">http://example.com</a>><br>
<<a href="http://example.com" target="_blank">http://example.com</a>> -b<br>
<br>
dc=example,dc=com -D user.name@a_domain -w qwerty<br>
<br>
<br>
Best regards,<br>
Cristian Falcas<br>
<br>
<br>
<br></div><div class="im">
______________________________<u></u>_____________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a> <mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>> <mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<mailto:<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a>>><br>
<a href="http://lists.ovirt.org/____mailman/listinfo/users" target="_blank">http://lists.ovirt.org/____<u></u>mailman/listinfo/users</a><br>
<<a href="http://lists.ovirt.org/__mailman/listinfo/users" target="_blank">http://lists.ovirt.org/__<u></u>mailman/listinfo/users</a>><br>
<<a href="http://lists.ovirt.org/__mailman/listinfo/users" target="_blank">http://lists.ovirt.org/__<u></u>mailman/listinfo/users</a><br>
<<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/<u></u>mailman/listinfo/users</a>>><br>
<br>
<br>
<br>
<br>
Hi,<br>
<br></div><div class="im">
I used "-x" for ldapsearch and the result is the same: list<br>
retrieved.<br>
Is there any equivalent for engine-manage-domains?<br>
<br>
Cristian<br>
<br>
Hi Christian, there is no code allowing to add simple-authentication<br>
domains to Manage-Domains.<br>
In the past we did have the ability to do that, but there are<br>
several problematic issues.<br>
What ldap server are you working against? Maybe I missed that<br>
<br>
<br>
<br>
<br>
Hi,<br>
<br>
The server is a Microfost AD 2003.<br>
<br>
Best regards,<br>
Cristian Falcas<br>
</div></blockquote>
<br>
this should work, is the AD also the DNS server for the ovirt engine machine?<br>
<br>
</blockquote></div><br><br>yes<br></div>