X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Fshellcommands.pm;h=29e0a57990aff2a7bb307a1f549093a36efd5c7a;hb=c648976f0b7975f2328ebd7ba8c711fad0ca4195;hp=0545b5c59a991324614a422a13808142c7b33877;hpb=84191efb2ad13dd839372df7a948dc08a6bb5ff5;p=freeside.git diff --git a/FS/FS/part_export/shellcommands.pm b/FS/FS/part_export/shellcommands.pm index 0545b5c59..29e0a5799 100644 --- a/FS/FS/part_export/shellcommands.pm +++ b/FS/FS/part_export/shellcommands.pm @@ -157,12 +157,13 @@ old_ for replace operations):
$username
$_password
$quoted_password
- unencrypted password, already quoted for the shell (do not add additional quotes).
- $crypt_password
- encrypted password. When used on the command line (rather than STDIN), it will be already quoted for the shell (do not add additional quotes).
+ $crypt_password
- encrypted password. When used on the command line (rather than STDIN), it will be quoted for the shell already (do not add additional quotes).
+ $ldap_password
- Password in LDAP/RFC2307 format (for example, "{PLAIN}himom", "{CRYPT}94pAVyK/4oIBk" or "{MD5}5426824942db4253f87a1009fd5d2d4"). When used on the command line (rather than STDIN), it will be quoted for the shell already (do not add additional quotes).
$uid
$gid
- $finger
- GECOS. When used on the command line (rather than STDIN), it will be already quoted for the shell (do not add additional quotes).
- $first
- First name of GECOS. When used on the command line (rather than STDIN), it will be already quoted for the shell (do not add additional quotes).
- $last
- Last name of GECOS. When used on the command line (rather than STDIN), it will be already quoted for the shell (do not add additional quotes).
+ $finger
- GECOS. When used on the command line (rather than STDIN), it will be quoted for the shell already (do not add additional quotes).
+ $first
- First name of GECOS. When used on the command line (rather than STDIN), it will be quoted for the shell already (do not add additional quotes).
+ $last
- Last name of GECOS. When used on the command line (rather than STDIN), it will be quoted for the shell already (do not add additional quotes).
$dir
- home directory
$shell
$quota
@@ -249,6 +250,7 @@ sub _export_command {
$quoted_password = shell_quote $_password;
$crypt_password = $svc_acct->crypt_password( $self->option('crypt') );
+ $ldap_password = $svc_acct->ldap_password( $self->option('crypt') );
@radius_groups = $svc_acct->radius_groups;
@@ -291,6 +293,7 @@ sub _export_command {
$last = shell_quote $last;
$finger = shell_quote $finger;
$crypt_password = shell_quote $crypt_password;
+ $ldap_password = shell_quote $ldap_password;
my $command_string = eval(qq("$command"));
@@ -320,6 +323,7 @@ sub _export_replace {
$new_domain = $new->domain;
$new_crypt_password = $new->crypt_password( $self->option('crypt') );
+ $new_ldap_password = $new->ldap_password( $self->option('crypt') );
@old_radius_groups = $old->radius_groups;
@new_radius_groups = $new->radius_groups;
@@ -356,7 +360,8 @@ sub _export_replace {
$new_first = shell_quote $new_first;
$new_last = shell_quote $new_last;
$new_finger = shell_quote $new_finger;
- $new_crypt_password = shell_quote $crypt_password;
+ $new_crypt_password = shell_quote $new_crypt_password;
+ $new_ldap_password = shell_quote $new_ldap_password;
my $command_string = eval(qq("$command"));