From a61ec415daa6ad52d4ad20586062645723835ed9 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 29 Sep 2015 13:17:59 +0200 Subject: [PATCH] Add fake email address for users --- ldap-testing/batchCreateUsers.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ldap-testing/batchCreateUsers.php b/ldap-testing/batchCreateUsers.php index 5823ac17..671dd0f2 100644 --- a/ldap-testing/batchCreateUsers.php +++ b/ldap-testing/batchCreateUsers.php @@ -44,11 +44,14 @@ $entry['userPassword'] = $uid; $entry['gidNumber'] = 5000; $entry['uidNumber'] = $uidStart + $i + 1; + $entry['mail'] = $uid . '@example.org'; $ok = ldap_add($cr, $newDN, $entry); if($ok) { echo('created ' . $uid . ': ' . $entry['displayName'] . PHP_EOL); + } else { + echo('failed ' . $uid . ': ' . $entry['displayName'] . PHP_EOL); } }