Thanks, you probably saved me some time/frustration ;-)<br><br><div class="gmail_quote">On Tue, Jun 5, 2012 at 1:14 PM, Petr Viktorin <span dir="ltr"><<a href="mailto:pviktori@redhat.com" target="_blank">pviktori@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="HOEnZb"><div class="h5">On 06/05/2012 12:51 PM, Alexander Bokovoy wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Tue, 05 Jun 2012, Willem Bos wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Alexander,<br>
<br>
Thanks for your quick response.<br>
<br>
Yes, the server on which the external IM environment is hosted does not<br>
have the ipa utils available. As a matter of fact, the server might<br>
even be<br>
hosted off-site. We're just beginning to explore IM solutions for our<br>
environment and the most likely architecture is a 'meta-IM' service that<br>
provisions platform specific IM's like AD, Oracle's Internet Directory<br>
and<br>
IPA. It will probably be a requirement that the meta-IM is to<br>
provision IPA<br>
directly (instead of Meta-IM -> AD -> IPA).<br>
<br>
The JASON interface looks promising, I will certainly try the example<br>
provided. Would user_add be the suitable command to use? It's the obvious<br>
candidate, but I just want to make sure...<br>
</blockquote>
Yes, user_add is the command.<br>
<br>
</blockquote>
<br></div></div>
Also note that the RPC calls use LDAP attribute names, which are often different from the CLI parameters. You can use the show-mappings command to figure out the names to use:<br>
<br>
$ ipa show-mappings user-add<br>
Parameter : LDAP attribute<br>
========= : ==============<br>
first : givenname<br>
last : sn<br>
cn : cn<br>
displayname : displayname<br>
initials : initials<br>
homedir : homedirectory<br>
gecos : gecos<br>
shell : loginshell<br>
principal : krbprincipalname<br>
email : mail<br>
random : random<br>
uid : uidnumber<br>
gidnumber : gidnumber<br>
street : street<br>
city : l<br>
state : st<br>
postalcode : postalcode<br>
phone : telephonenumber<br>
mobile : mobile<br>
pager : pager<br>
fax : facsimiletelephonenumber<br>
orgunit : ou<br>
title : title<br>
manager : manager<br>
carlicense : carlicense<br>
sshpubkey : ipasshpubkey<br>
noprivate : noprivate<br>
<br>
<br>
Be careful as there currently are no warnings if you misspell an argument (we're working on that).<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Petrł<br>
</font></span></blockquote></div><br>