Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
best-practical
rt-extension-ldapimport
Commits
8034bf42
Commit
8034bf42
authored
Apr 18, 2012
by
Thomas Sibley
Browse files
Minor cleanups of doc formatting and the case of $LDAPUser
parent
a756cbfe
Changes
2
Hide whitespace changes
Inline
Side-by-side
README
View file @
8034bf42
...
...
@@ -2,10 +2,10 @@ 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($LDAPU
SER
,'me');
Set($LDAPU
ser
,'me');
Set($LDAPPassword,'mypass');
Set($LDAPFilter, '(&(cn = users))');
Set($LDAPMapping, {Name => 'uid', # required
...
...
@@ -13,22 +13,24 @@ SYNOPSIS
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
...
...
lib/RT/Extension/LDAPImport.pm
View file @
8034bf42
...
...
@@ -20,10 +20,10 @@ 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($LDAPU
SER
,'me');
Set($LDAPU
ser
,'me');
Set($LDAPPassword,'mypass');
Set($LDAPFilter, '(&(cn = users))');
Set($LDAPMapping, {Name => 'uid', # required
...
...
@@ -31,22 +31,24 @@ RT::Extension::LDAPImport - Import Users from an LDAP store
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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment