Back from hollidays... <br><br>I have just trying "--user-ignore-attribute=uidnumber,gidnumber", the server says that the posixAccount attribute requires uid and gid number. I will find another solution to solve my problem.<br>
<br><div class="im">James<br></div><br><br><div class="gmail_quote">2012/8/20 Rob Crittenden <span dir="ltr"><<a href="mailto:rcritten@redhat.com" target="_blank">rcritten@redhat.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">James James wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
my first question is about the migrate process. Is it possible to<br>
renumber the users during the migrate process (ipa migrate-ds) in a way<br>
that all imported users will have a new UID ?<br>
</blockquote>
<br></div>
I haven't tested this but you might try --user-ignore-attribute=<u></u>uidnumber,gidnumber.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
my second question is about ipalib. I wanted to make a hook on the user<br>
creation. The hook works fine. I just want to know if there is a way to<br>
have the value of variables like the username, the name of the creator,<br>
the e-mail of the creator and stuff like that.<br>
</blockquote>
<br></div>
The current user is available via: principal = getattr(context, 'principal')<br>
<br>
Using this you can look up that user:<br>
<br>
(binddn, bindattrs) = find_entry_by_attr("<u></u>krbprincipalname", principal, "krbPrincipalAux")<span class="HOEnZb"><font color="#888888"><br>
<br>
rob<br>
</font></span></blockquote></div><br>