[rt-users] LDAP and autohandler

Edstrom Johan johan.edstrom at sca.com
Thu Mar 14 12:31:13 EST 2002


The line below tells you that Net::LDAP could not find any
objects ....

- I think you have the DN/and or base wrong.

The build of the DN is important, if you do not have the exact structure
of you schema, you might just want to connect first and do a search
along the lines of

(&(objectclass=inetorgperson)(uid=$uid))

Where the $uid should correspond to an existing $uid in the Directory.

I put an "Offline" or batch oriented contrib up there in the contrib-2.0
director, it's called
LDAPsynch.tar.gz or something like that, you could steal some code
from there, I do a similar thing - just scan through all email addresses
and copy data over from LDAP so all of our users have correct
phone-numbers and addresses....

/JE

> Login failed: LDAP_NO_SUCH_OBJECT
>
> I think my LDAP problem may be in this line
>
> my $dn = "uid=" . $user . ",o=our company, c=ca";
>
> but I can't see what's wrong with this.
>
>
> Here's the mason error for root logins:
>
> error in file:   /usr/local/rt2/WebRT/data/obj/STANDARD/autohandler
>   line 72:  Can't call method "id" on an undefined value
>
> context:   ...
> 68:  }
> 69:
> 70:  } else
>
> 71:
> 72:  unless ($session{'CurrentUser'}->id() )
>
> 73:  delete $session{'CurrentUser'};
> 74:  $m->comp('/Elements/Login', %ARGS, Error=> 'Your username or password
> is incorrect');
> 75:  $m->abort();
> 76:  };
> ...
>
> component stack:   /autohandler [standard]
>
> code stack:   /usr/local/rt2/WebRT/data/obj/STANDARD/autohandler:72
>
>
>
> raw_error
>
> raw error:
>
> error while executing /autohandler [standard]:
> Can't call method "id" on an undefined value at
> /usr/local/rt2/WebRT/data/obj/STANDARD/autohandler line 72,  line 1.
> HTML::Mason::Interp::__ANON__('Can\'t call method "id" on an
> undefined value
> at /usr/local/rt2/...') called at
> /usr/local/rt2/WebRT/data/obj/STANDARD/autohandler line 72
> HTML::Mason::Commands::__ANON__('pass', 'labsup', 'user', 'root')
> called at
> /usr/local/lib/perl5/site_perl/5.6.1/HTML/Mason/Component.pm line 131
> HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HAS
> H(0x109eb7
> c)', 'pass', 'labsup', 'user', 'root') called at
> /usr/local/lib/perl5/site_perl/5.6.1/HTML/Mason/Request.pm line 653
> eval {...} called at
> /usr/local/lib/perl5/site_perl/5.6.1/HTML/Mason/Request.pm line 653
> HTML::Mason::Request::comp('HTML::Mason::Request::ApacheHandler=HA
> SH(0x10859
> b4)', 'HASH(0x108d7d4)',
> 'HTML::Mason::Component::FileBased=HASH(0x109eb7c)', 'pass', 'labsup',
> 'user', 'root') called at
> /usr/local/lib/perl5/site_perl/5.6.1/HTML/Mason/Request.pm line 159
> eval {...} called at
> /usr/local/lib/perl5/site_perl/5.6.1/HTML/Mason/Request.pm line 159
> HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HA
> SH(0x10859
> b4)', '/index.html', 'pass', 'labsup', 'user', 'root') called at
> /usr/local/lib/perl5/site_perl/5.6.1/HTML/Mason/ApacheHandler.pm line 914
> HTML::Mason::ApacheHandler::handle_request_1('HTML::Mason::ApacheH
andler=HAS
> H(0xf369fc)', 'Apache=SCALAR(0xfb5678)',
> 'HTML::Mason::Request::ApacheHandler=HASH(0x10859b4)', undef) called at
> /usr/local/lib/perl5/site_perl/5.6.1/HTML/Mason/ApacheHandler.pm line 560
> eval {...} called at
> /usr/local/lib/perl5/site_perl/5.6.1/HTML/Mason/ApacheHandler.pm line 560
> HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHan
dler=HASH(
> 0xf369fc)', 'Apache=SCALAR(0xfb5678)') called at
> /usr/local/rt2/bin/webmux.pl line 165
> RT::Mason::handler('Apache=SCALAR(0xfb5678)') called at /dev/null line 0
> eval {...} called at /dev/null line 0
>
>
> Any help would be greatly appreciated!  Thanks for your time, and
> for wading
> through this huge e-mail!
>
> Michael K. Brown
> Lab Technician
> ATM Engineering Services - Lab Services
> Tel: (613) 784-4354
> michael.k.brown at alcatel.com
>
>
> _______________________________________________
> rt-users mailing list
> rt-users at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-users
>





More information about the rt-users mailing list