For testing lib/pdf.inc
This commit is contained in:
parent
43c7ffe737
commit
197f5169be
|
@ -0,0 +1,61 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id$
|
||||||
|
|
||||||
|
This code is part of LDAP Account Manager (http://www.sourceforge.net/projects/lam)
|
||||||
|
Copyright (C) 2003 Tilo Lutz
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
|
||||||
|
LDAP Account Manager test for lib/pdf.inc
|
||||||
|
*/
|
||||||
|
include_once("../lib/account.inc");
|
||||||
|
include_once("../lib/pdf.inc");
|
||||||
|
|
||||||
|
$accounts = array();
|
||||||
|
$account = new Account();
|
||||||
|
$account->general_username = "mamu1";
|
||||||
|
$account->general_uidnumber = "501";
|
||||||
|
$account->general_surname = "Mustermann";
|
||||||
|
$account->general_givenname = "Max";
|
||||||
|
$account->general_group = "tg1";
|
||||||
|
$account->general_groupadd = array("tg2","tg3");
|
||||||
|
$account->general_homedir = "/home/m/mamu1";
|
||||||
|
$account->general_shell = array("/bin/bash","/bin/sh");
|
||||||
|
$account->unix_password = "secret1";
|
||||||
|
$account->unix_password_no = "0";
|
||||||
|
array_push($accounts,$account);
|
||||||
|
$account = new Account();
|
||||||
|
$account->general_username = "mam2";
|
||||||
|
$account->general_uidnumber = "502";
|
||||||
|
$account->general_surname = "Mustermann";
|
||||||
|
$account->general_givenname = "Max";
|
||||||
|
$account->general_group = "tg1";
|
||||||
|
$account->general_groupadd = array("tg3");
|
||||||
|
$account->general_homedir = "/home/m/mamu2";
|
||||||
|
$account->general_shell = array("/bin/bash","/bin/sh");
|
||||||
|
$account->unix_password = "secret2";
|
||||||
|
$account->unix_password_no = "1";
|
||||||
|
array_push($accounts,$account);
|
||||||
|
$account = new Account();
|
||||||
|
$account->general_username = "mamu3";
|
||||||
|
$account->general_uidnumber = "503";
|
||||||
|
$account->general_surname = "Mustermann";
|
||||||
|
$account->general_givenname = "Max";
|
||||||
|
array_push($accounts,$account);
|
||||||
|
|
||||||
|
createpdf($accounts);
|
||||||
|
?>
|
Loading…
Reference in New Issue