Hi Mark,

> Looking closer at the Ansible doc for User module is says it depends on 
> usermod.  The man page for AIX usermod does not show an option to set the 
> password.

Looking more close, one will see:

class AIX(User):
...
def modify_user_usermod(self):
        ...
        # set password with chpasswd
      ...
        cmd = []
      cmd.append('echo "'+self.name+':'+self.password+'" |')
      cmd.append(self.module.get_bin_path('chpasswd', True))

So I can say, that setting a password hash with the user module works on AIX 
(hash appears in /etc/security/passwd). However, this function is not 
idempotent, because other parts in the code assumes that SHADOWFILE = 
'/etc/security/passwd' has columns, like /etc/shadow on linux, to compare if 
the hash has changed (someone should fill a issue/bug).

What troubles me more, is to create working hashes on the linux control machine 
(using mkpasswd). The only method working seems smd5.

Thanks, Sascha.



Aufsichtsratsvorsitzender: Herbert Vogel
Geschäftsführung: Michael Krüger
Sitz der Gesellschaft: Halle/Saale
Registergericht: Amtsgericht Stendal | Handelsregister-Nr. HRB 208414
UST-ID-Nr. DE 158253683

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Empfänger sind oder diese E-Mail irrtümlich 
erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie 
diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail 
oder des Inhalts dieser Mail sind nicht gestattet. Diese Kommunikation per 
E-Mail ist nicht gegen den Zugriff durch Dritte geschützt. Die GISA GmbH haftet 
ausdrücklich nicht für den Inhalt und die Vollständigkeit von E-Mails und den 
gegebenenfalls daraus entstehenden Schaden. Sollte trotz der bestehenden 
Viren-Schutzprogramme durch diese E-Mail ein Virus in Ihr System gelangen, so 
haftet die GISA GmbH - soweit gesetzlich zulässig - nicht für die hieraus 
entstehenden Schäden.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/383FAD2C9609F74D8F075EFF2B86B57994CCD9BB%40SGIS111.gisa-halle.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to