diff --git a/lam-0.4/lib/pdf.inc b/lam-0.4/lib/pdf.inc index fac96857..19667a99 100644 --- a/lam-0.4/lib/pdf.inc +++ b/lam-0.4/lib/pdf.inc @@ -136,7 +136,7 @@ function createUserPDF($accounts) { elseif($account->unix_password == "") { } else { -// $account->unix_password = $_SESSION['ldap']->decrypt(base64_decode($account->unix_password)); + $account->unix_password = $_SESSION['ldap']->decrypt(base64_decode($account->unix_password)); $pdfFile->setFont("times","B",10); $pdfFile->Cell(50,5,_("Unix password") . ":",0,0,"R",0); $pdfFile->setFont("times","",10); @@ -225,8 +225,8 @@ function createUserPDF($accounts) { $pdfFile->setFont("times","B",10); $pdfFile->Cell(50,5,_("Windows Domain") . ":",0,0,"R",0); $pdfFile->setFont("times","",10); -// if($_SESSION['config']->get_samba3() == "yes") $pdfFile->Cell(50,5,$account->smb_domain->name,0,1,"L",0); -// else $pdfFile->Cell(50,5,$account->smb_domain,0,1,"L",0); + if($_SESSION['config']->get_samba3() == "yes") $pdfFile->Cell(50,5,$account->smb_domain->name,0,1,"L",0); + else $pdfFile->Cell(50,5,$account->smb_domain,0,1,"L",0); // Print Quota settings $pdfFile->Ln(9); $pdfFile->setFont("arial","B",12);