Skip to content

Commit

Permalink
Decrypt the bind password
Browse files Browse the repository at this point in the history
Fixes #8495
  • Loading branch information
jrouzierinverse committed Jan 15, 2025
1 parent c842e9b commit f4d5922
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/pf/UnifiedApi/Controller/Config/Domains.pm
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ use Encode qw(encode);
use Net::DNS;
use JSON;
use pf::constants qw($TRUE $FALSE);
use pf::config::crypt;

my $host_id = hostname();

Expand Down Expand Up @@ -146,7 +147,7 @@ sub create {
}

my $bind_dn = $item->{bind_dn};
my $bind_pass = $item->{bind_pass};
my $bind_pass = pf::config::crypt::pf_decrypt($item->{bind_pass});
my $computer_name = $item->{server_name};
my $computer_password = $item->{machine_account_password};
my $ad_fqdn = $item->{ad_fqdn};
Expand Down

0 comments on commit f4d5922

Please sign in to comment.