Italo,<br><br>I had to do this awhile back and I had to develop a work-around procedure. What I did was wait until after hours (everyone went home) and then changed the RT_SiteConfig.pm file to turn off LDAP and allow adding users manually. I then bounced my RT session and added the users. Then I went back and changed the configurations back and bounced it again and it was ready for normal LDAP authentication for production hours.<br>
<br>Hope this helps.<br><br>Kenn<br>LBNL<br><br><div class="gmail_quote">On Wed, May 19, 2010 at 8:38 AM, Italo Valcy <span dir="ltr"><<a href="mailto:italovalcy@gmail.com">italovalcy@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi guys,<br>
<br>
I'm using ExternalAuth to authenticate user against a LDAP server. But<br>
I'm unable to load an user that have never logged in RT (but it<br>
exists on LDAP database).<br>
<br>
Steps to reproduce:<br>
1. Create a new user account on LDAP server, let say 'testuser' (cn<br>
= "Test User")<br>
2. Configure map attributes to use RealName (RT) as 'cn' (LDAP).<br>
3. Try to load a user in a scrip:<br>
--------------------8<-------------------------<br>
...<br>
my $user = RT::User->new($RT::SystemUser);<br>
$user->LoadByCol("RealName", "Test User");<br>
...<br>
--------------------8<-------------------------<br>
<br>
Expected result: the scrip will not load the user.<br>
<br>
My question is: Is there a way to load this user (a valid user in LDAP<br>
server) even if he has never logged in? (I mean autocreate the user<br>
while we load him)<br>
<br>
Some information:<br>
- I'm using RT 3.6<br>
- I followed [1] to get LDAP authentication working (very long time<br>
ago, and I know its deprecated now)<br>
<br>
1 - <a href="http://wiki.bestpractical.com/view/LdapUserLocalOverlay" target="_blank">http://wiki.bestpractical.com/view/LdapUserLocalOverlay</a><br>
<br>
Thanks for any help.<br>
<br>
<br>
Kind Regards, Italo.<br>
<font color="#888888"><br>
--<br>
Saudações,<br>
<br>
Italo Valcy :: <a href="http://wiki.dcc.ufba.br/%7EItaloValcy" target="_blank">http://wiki.dcc.ufba.br/~ItaloValcy</a><br>
<br>
Discover RT's hidden secrets with RT Essentials from O'Reilly Media.<br>
Buy a copy at <a href="http://rtbook.bestpractical.com" target="_blank">http://rtbook.bestpractical.com</a><br>
</font></blockquote></div><br>