From 5e6c6d766f5782dd1f91bf249f5f8ea7878977a6 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Tue, 26 Aug 2003 04:36:27 +0000 Subject: sync with changes from Jerome Tournier @ IDEALX; should now work with sambaSamAccount schema (This used to be commit 5f41cd76b793305e1e9e4da76d58daa2d8438c63) --- examples/LDAP/smbldap-tools/smbldap-populate.pl | 73 ++++++++++++++----------- 1 file changed, 40 insertions(+), 33 deletions(-) (limited to 'examples/LDAP/smbldap-tools/smbldap-populate.pl') diff --git a/examples/LDAP/smbldap-tools/smbldap-populate.pl b/examples/LDAP/smbldap-tools/smbldap-populate.pl index 5be9ca4262..1676017c67 100755 --- a/examples/LDAP/smbldap-tools/smbldap-populate.pl +++ b/examples/LDAP/smbldap-tools/smbldap-populate.pl @@ -87,6 +87,7 @@ if (!defined($_ldifName)) { die "can't extract first attr and value from suffix $suffix"; } #print "$attr=$val\n"; + my ($organisation,$ext) = ($suffix =~ m/dc=(\w+),dc=(\w+)$/); #my $FILE="|cat"; my $FILE="|$ldapadd -c"; @@ -95,7 +96,9 @@ if (!defined($_ldifName)) { print FILE <