Skip to content

ad connect password viewable in --debug mode #17

@dionrowney

Description

@dionrowney

We have noticed that the password can be seen when running

puppet agent -t --debug

Debug: /Stage[main]/Adcli::Join/Exec[adcli_join]: '/bin/echo -n 'passwordinplaintext' | /usr/sbin/adcli join   --login-user='adjoin' --domain='example.local' --domain-ou='OU=Linux,OU=Servers,OU=AdminOU,DC=example,DC=local' --stdin-password --verbose    ' won't be executed because of failed check 'unless'

It was expected that the password would be obscured with xxxxxxx possibly by using the Sensative() fucntions

We are calling it using heira vars but also called it this way

class {'::adcli':
ad_join_password => lookup('adcli::ad_join_password')
}

also tried
class {'::adcli':
ad_join_password => Sensitive(lookup('adcli::ad_join_password'))
}

and this errors out as you are using plain text strings I believe

Is there any way to mask the password?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions