Browse files

Minor cleanups of doc formatting and the case of $LDAPUser

  • Loading branch information...
1 parent a756cbf commit 8034bf4264cc1459444bcc0ec065a37c4c116ca3 @tsibley tsibley committed Apr 18, 2012
Showing with 16 additions and 12 deletions.
  1. +8 −6 README
  2. +8 −6 lib/RT/Extension/LDAPImport.pm
View
14 README
@@ -2,33 +2,35 @@ NAME
RT::Extension::LDAPImport - Import Users from an LDAP store
SYNOPSIS
- # In RT_SiteConfig.pm
+ In "RT_SiteConfig.pm":
Set($LDAPHost,'my.ldap.host')
- Set($LDAPUSER,'me');
+ Set($LDAPUser,'me');
Set($LDAPPassword,'mypass');
Set($LDAPFilter, '(&(cn = users))');
Set($LDAPMapping, {Name => 'uid', # required
EmailAddress => 'mail',
RealName => 'cn',
WorkPhone => 'telephoneNumber',
Organization => 'departmentName'});
-
+
# Add to any existing plugins
Set(@Plugins, qw(RT::Extension::LDAPImport));
-
+
# If you want to sync Groups RT <-> LDAP
-
+
Set($LDAPGroupBase, 'ou=Groups,o=Our Place');
Set($LDAPGroupFilter, '(&(cn = Groups))');
Set($LDAPGroupMapping, {Name => 'cn',
Member_Attr => 'member',
Member_Attr_Value => 'dn' });
+ Running the import:
+
# Run a test import
/opt/rt4/local/plugins/RT-Extension-LDAPImport/bin/rtldapimport \
--debug > ldapimport.debug 2>&1
-
+
# Run for real, possibly put in cron
/opt/rt4/local/plugins/RT-Extension-LDAPImport/bin/rtldapimport \
--import
View
14 lib/RT/Extension/LDAPImport.pm
@@ -20,33 +20,35 @@ RT::Extension::LDAPImport - Import Users from an LDAP store
=head1 SYNOPSIS
- # In RT_SiteConfig.pm
+In C<RT_SiteConfig.pm>:
Set($LDAPHost,'my.ldap.host')
- Set($LDAPUSER,'me');
+ Set($LDAPUser,'me');
Set($LDAPPassword,'mypass');
Set($LDAPFilter, '(&(cn = users))');
Set($LDAPMapping, {Name => 'uid', # required
EmailAddress => 'mail',
RealName => 'cn',
WorkPhone => 'telephoneNumber',
Organization => 'departmentName'});
-
+
# Add to any existing plugins
Set(@Plugins, qw(RT::Extension::LDAPImport));
-
+
# If you want to sync Groups RT <-> LDAP
-
+
Set($LDAPGroupBase, 'ou=Groups,o=Our Place');
Set($LDAPGroupFilter, '(&(cn = Groups))');
Set($LDAPGroupMapping, {Name => 'cn',
Member_Attr => 'member',
Member_Attr_Value => 'dn' });
+Running the import:
+
# Run a test import
/opt/rt4/local/plugins/RT-Extension-LDAPImport/bin/rtldapimport \
--debug > ldapimport.debug 2>&1
-
+
# Run for real, possibly put in cron
/opt/rt4/local/plugins/RT-Extension-LDAPImport/bin/rtldapimport \
--import

0 comments on commit 8034bf4

Please sign in to comment.