[Freeipa-devel] [PATCH] Fix condition bug in ipa-pwd-extop plugin. Variable used uninitialized. [Was: Re: Adding new IPA users on the CLI]

Pavel Zuna pzuna at redhat.com
Thu Feb 4 15:39:31 UTC 2010


Rob Crittenden wrote:
> David O'Brien wrote:
>> I tried this:
>>
>> # /usr/bin/ipa user-add --first=My --last=Name --password
>> User login [mname]:
>> password:
>> Enter password again to verify:
>> ipa: ERROR: Constraint violation:pre-hashed passwords are not valid
>>
>> I entered "password" as the password.
>> If I enter nothing, it seems to create the user ok, but without a 
>> password (I think), so I don't know how to get a ticket. None of the 
>> shortened options (-f, -l, -p, etc.,) from v1.x work, either.
> 
> This seems related to the changes we made for password migration. Pavel, 
> can you take a look? It is easily reproduced.
> 
> rob
> 
Programming mistake on my part. This should fix it. I also replaced all 
conditions, that assume LDAP_SUCCESS == 0.

Please, add me to CC next time, otherwise I might take longer to notice. :)

Pavel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-condition-bug-in-ipa-pwd-extop-plugin.-Variable-.patch
Type: application/mbox
Size: 2679 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20100204/f684fe4f/attachment.mbox>


More information about the Freeipa-devel mailing list