<div>It works !!! I installed my server with --selfsign and i added in_tree=False in my api.bootstrap() method and it runs very well. Thank you guys ^^</div><div><br></div>--<br clear="all">Meilleures salutations / Best Regards<br>

<br>Rachid ALAHYANE<br><br>
<br><br><div class="gmail_quote">2010/4/23 Rob Crittenden <span dir="ltr"><<a href="mailto:rcritten@redhat.com">rcritten@redhat.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Lots of embedded comments...<br>
<br>
ALAHYANE Rachid wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hi,<br>
<br>
<br>
    How about:<br>
<br>
    api.bootstrap(context='webservices', debug=True,<br>
    xmlrpc_uri='<a href="https://luna.greyoak.com/ipa/xml" target="_blank">https://luna.greyoak.com/ipa/xml</a>')<br>
<br>
<br>
 when I do this, I get these messages<br>
<br>
---------------------------------------------------------------------<br>
In [1]: from ipalib import api<br>
<br>
In [2]: api.bootstrap(context='webservices', debug=True, xmlrpc_uri='<a href="https://server.domain.org/ipa/xml" target="_blank">https://server.domain.org/ipa/xml</a>')<br>
<br>
In [3]: api.env.xmlrpc_uri Out[3]: u'<a href="https://server.domain.org/ipa/xml" target="_blank">https://server.domain.org/ipa/xml</a>'<br>
<br></div>
In [4]: api.env.realm Out[4]: u'<a href="http://EXAMPLE.COM" target="_blank">EXAMPLE.COM</a> <<a href="http://EXAMPLE.COM" target="_blank">http://EXAMPLE.COM</a>>'<div><div></div><div class="h5"><br>
<br>
In [5]: api.finalize()<br>
ipa: DEBUG: importing all plugin modules in '/usr/lib/python2.6/site-packages/ipalib/plugins'...<br>
ipa: DEBUG: importing plugin module '/usr/lib/python2.6/site-packages/ipalib/plugins/aci.py'<br>
ipa: DEBUG: importing plugin module '/usr/lib/python2.6/site-packages/ipalib/plugins/automount.py'<br>
ipa: DEBUG: importing plugin module '/usr/lib/python2.6/site-packages/ipalib/plugins/baseldap.py'<br>
ipa: DEBUG: importing plugin module '/usr/lib/python2.6/site-packages/ipalib/plugins/cert.py'<br>
ipa: INFO: skipping plugin module ipalib.plugins.cert: env.enable_ra is not True<br>
ipa: DEBUG: importing plugin module '/usr/lib/python2.6/site-packages/ipalib/plugins/config.py'<br>
ipa: DEBUG: importing plugin module '/usr/lib/python2.6/site-packages/ipalib/plugins/dns.py'<br>
ipa: DEBUG: importing plugin module '/usr/lib/python2.6/site-packages/ipalib/plugins/group.py'<br>
ipa: DEBUG: importing plugin module '/usr/lib/python2.6/site-packages/ipalib/plugins/hbac.py'<br>
ipa: DEBUG: importing plugin module '/usr/lib/python2.6/site-packages/ipalib/plugins/host.py'<br>
ipa: DEBUG: importing plugin module '/usr/lib/python2.6/site-packages/ipalib/plugins/hostgroup.py'<br>
ipa: DEBUG: importing plugin module '/usr/lib/python2.6/site-packages/ipalib/plugins/kerberos.py'<br>
ipa: DEBUG: importing plugin module '/usr/lib/python2.6/site-packages/ipalib/plugins/krbtpolicy.py'<br>
ipa: DEBUG: importing plugin module '/usr/lib/python2.6/site-packages/ipalib/plugins/migration.py'<br>
ipa: DEBUG: importing plugin module '/usr/lib/python2.6/site-packages/ipalib/plugins/misc.py'<br>
ipa: DEBUG: importing plugin module '/usr/lib/python2.6/site-packages/ipalib/plugins/netgroup.py'<br>
ipa: DEBUG: importing plugin module '/usr/lib/python2.6/site-packages/ipalib/plugins/passwd.py'<br>
ipa: DEBUG: importing plugin module '/usr/lib/python2.6/site-packages/ipalib/plugins/pwpolicy.py'<br>
ipa: DEBUG: importing plugin module '/usr/lib/python2.6/site-packages/ipalib/plugins/rolegroup.py'<br>
ipa: DEBUG: importing plugin module '/usr/lib/python2.6/site-packages/ipalib/plugins/service.py'<br>
ipa: DEBUG: importing plugin module '/usr/lib/python2.6/site-packages/ipalib/plugins/taskgroup.py'<br>
ipa: DEBUG: importing plugin module '/usr/lib/python2.6/site-packages/ipalib/plugins/user.py'<br>
ipa: DEBUG: importing plugin module '/usr/lib/python2.6/site-packages/ipalib/plugins/virtual.py'<br>
ipa: DEBUG: importing plugin module '/usr/lib/python2.6/site-packages/ipalib/plugins/xmlclient.py'<br>
<br>
In [6]: api.Backend.xmlclient.connect()<br>
ipa: INFO: Created connection context.xmlclient<br>
<br>
In [7]: api.Command.user_show(u'admin')<br>
ipa: DEBUG: raw: user_show(u'admin')<br>
ipa: INFO: user_show(u'admin', all=False, raw=False)<br>
ipa: INFO: Forwarding 'user_show' to server u'<a href="https://server.domain.org/ipa/xml" target="_blank">https://server.domain.org/ipa/xml</a>'<br>
ipa: DEBUG: Caught fault 3008 from server <a href="https://server.domain.org/ipa/xml" target="_blank">https://server.domain.org/ipa/xml</a>: invalid 'uid': Only one value is allowed<br>
---------------------------------------------------------------------------<br>
ConversionError                           Traceback (most recent call last)<br>
<br>
/root/<ipython console> in <module>()<br>
<br>
/usr/lib/python2.6/site-packages/ipalib/frontend.pyc in __call__(self, *args, **options)<br>
    399         self.validate(**params)<br>
    400         (args, options) = self.params_2_args_options(**params)<br>
--> 401         ret = self.run(*args, **options)<br>
    402         if (<br>
    403             isinstance(ret, dict)<br>
<br>
/usr/lib/python2.6/site-packages/ipalib/frontend.pyc in run(self, *args, **options)<br>
    668         if self.api.env.in_server:<br>
    669             return self.execute(*args, **options)<br>
--> 670         return self.forward(*args, **options)<br>
    671     672     def execute(self, *args, **kw):<br>
<br>
/usr/lib/python2.6/site-packages/ipalib/frontend.pyc in forward(self, *args, **kw)<br>
    689         Forward call over XML-RPC to this same command on server.<br>
    690         """<br></div></div>
--> 691         return self.Backend.xmlclient.forward(<a href="http://self.name" target="_blank">self.name</a> <<a href="http://self.name" target="_blank">http://self.name</a>>, *args, **kw)<div class="im"><br>
    692     693     def finalize(self):<br>
<br>
/usr/lib/python2.6/site-packages/ipalib/rpc.pyc in forward(self, name, *args, **kw)<br>
    412             if e.faultCode in self.__errors:<br>
    413                 error = self.__errors[e.faultCode]<br>
--> 414                 raise error(message=e.faultString)<br>
    415             raise UnknownError(<br>
    416                 code=e.faultCode,<br>
<br>
ConversionError: invalid 'uid': Only one value is allowed<br>
---------------------------------------------------------------------<br>
<br></div>
For api.env.realm, u'<a href="http://DOMAIN.ORG" target="_blank">DOMAIN.ORG</a> <<a href="http://DOMAIN.ORG" target="_blank">http://DOMAIN.ORG</a>>' is expected value. it seems that api.env was not initialized correctly.<br>


</blockquote>
<br>
I suspect is isn't reading the configuration file. Try adding 'in_tree=False' to your bootstrap call. This should force it to read /etc/ipa/default.conf (which I assume you have configured).<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
    Is there anything interesting logged on the server?<br>
<br>
    With debug=True you get a lot more output, might show something as well.<br>
<br>
<br>
You are right, here the logs on the ipa server<br>
<br>
---------------------------------------------------------------------<br>
==> /var/log/httpd/error_log <==<br>
ipa: INFO: Created connection context.ldap2<br>
ipa: DEBUG: raw: user_show((u'admin',), all=False, raw=False)<br>
ipa: INFO: Destroyed connection context.ldap2<br>
<br>
==> /var/log/httpd/access_log <==<br></div>
172.30.0.137 - <a href="mailto:raca@DOMAIN.ORG" target="_blank">raca@DOMAIN.ORG</a> <mailto:<a href="mailto:raca@DOMAIN.ORG" target="_blank">raca@DOMAIN.ORG</a>> [23/Apr/2010:18:06:16 +0200] "POST /ipa/xml HTTP/1.0" 200 315<div class="im">

<br>
<br>
==> /var/log/httpd/error_log <==<br>
ipa: INFO: Created connection context.ldap2<br>
ipa: DEBUG: raw: user_show((u'admin',), all=False, raw=False)<br>
ipa: INFO: Destroyed connection context.ldap2<br>
<br>
==> /var/log/httpd/access_log <==<br></div>
172.30.0.137 - <a href="mailto:raca@DOMAIN.ORG" target="_blank">raca@DOMAIN.ORG</a> <mailto:<a href="mailto:raca@DOMAIN.ORG" target="_blank">raca@DOMAIN.ORG</a>> [23/Apr/2010:18:11:53 +0200] "POST /ipa/xml HTTP/1.0" 200 315<div class="im">

<br>
<br>
---------------------------------------------------------------------<br>
<br>
I think, I have this problem because I use two different versions of freeipa. In the one hand, I have an old version (1.9.0GIT28d8bd6-0.fc12.i686 that I generated  there was a time) of freeipa on the ipa server, on the other hand I have the last version of freeIPA on the client. So, I generated new rpms from the last version of git repository and I installed them on the client and server.<br>


</div></blockquote>
<br>
Yes, I think you're right here. The multiple value error is because admin is being converted into a tuple at some point. Looks ok in the client log though we'd have to enable more XML-RPC debugging to see what it is sent as on the wire. We did some recent API changes so I'm going to guess this is what the problem is, updating (or using the same version of IPA on both sides) is the right way to go.<br>


<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
<br>
But when I start ipa-server-install on the server, I get an error (hem I think that I must to post a new mail on the mailing list)<br>
<br>
----------------------------------------------------------------------<br>
....<br>
....<br>
The following operations may take some minutes to complete.<br>
Please wait until the prompt is returned.<br>
<br>
Configuring directory server for the CA:<br>
  [1/4]: creating directory server user<br>
  [2/4]: creating directory server instance<br>
  [3/4]: configuring directory to start on boot<br>
  [4/4]: restarting directory server<br>
done configuring pkids.<br>
Configuring certificate server:<br>
  [1/14]: creating certificate server user<br>
  [2/14]: configuring certificate server instance<br></div>
root        : CRITICAL failed to restart ca instance Command '/usr/bin/perl /usr/bin/pkisilent ConfigureCA -cs_hostname <a href="http://server.domain.org" target="_blank">server.domain.org</a> <<a href="http://server.domain.org" target="_blank">http://server.domain.org</a>> -cs_port 9445 -client_certdb_dir /tmp/tmp-Li3Uhg -client_certdb_pwd XXXXXXXX -preop_pin cYUmg5JpkmRm3xBAlTqg -domain_name IPA -admin_user admin -admin_email root@localhost -admin_password XXXXXXXX -agent_name ipa-ca-agent -agent_key_size 2048 -agent_key_type rsa -agent_cert_subject "CN=ipa-ca-agent,O=IPA" -ldap_host <a href="http://server.domain.org" target="_blank">server.domain.org</a> <<a href="http://server.domain.org" target="_blank">http://server.domain.org</a>> -ldap_port 7389 -bind_dn "cn=Directory Manager" -bind_password XXXXXXXX -base_dn o=ipaca -db_name ipaca -key_size 2048 -key_type rsa -save_p12 true -backup_pwd XXXXXXXX -subsystem_name pki-cad -token_name internal -ca_subsystem_cert_subject_name "CN=CA Subsystem,O=IPA" -ca_ocsp_cert_subject_name "CN=OCSP Subsystem,O=IPA" -ca_server_cert_subject_name "CN=<a href="http://server.domain.org" target="_blank">server.domain.org</a> <<a href="http://server.domain.org" target="_blank">http://server.domain.org</a>>,O=IPA" -ca_audit_signing_cert_subject_name "CN=CA Audit,O=IPA" -ca_sign_cert_subject_name "CN=Certificate Authority,O=IPA" -external false -clone false' returned non-zero exit status 255<div class="im">

<br>
  [3/14]: creating CA agent PKCS#12 file in /root<br>
Unexpected error - see ipaserver-install.log for details:<br>
 Command '/usr/bin/pk12util -n ipa-ca-agent -o /root/ca-agent.p12 -d /tmp/tmp-Li3Uhg -k /tmp/tmphMeDU3 -w /tmp/tmphMeDU3' returned non-zero exit status 24<br>
</div></blockquote>
<br>
Yeah, mismatch in dogtag. You have two choices:<br>
<br>
1. If you don't care about the CA at this point you can install the IPA server with --selfsign which will install a simpler, self-signed CA that uses the NSS command-line utilities for certificates. Not really the best choice for a production installation but adequate for testing.<br>


<br>
2. Enable the updates-testing repo and update dogtag. I think that this should do it: yum --enablerepo=updates-testing update pki-* dogtag-*<br>
<br>
The problem is dogtag has pretty weak dependencies right now and at least one package is still lingering in updates-testing (pki-common).<br><font color="#888888">
<br>
rob<br>
</font></blockquote></div><br>