Tac_Plus CentOS Installation

1,219 views
Skip to first unread message

Bob Lee

unread,
Feb 16, 2012, 8:27:50 AM2/16/12
to Event-Driven Servers
Hello,

I'm trying to setup tac_plus with Active Directory authentication on
my VM which is running CentOS 6.1(currently unpatched). I've tried
following various guides - http://www.pro-bono-publico.de/projects/howto-tac_plus-ads.html,
http://www.perkinsblog.net/blog/index.php/2010/08/tacacs-with-windows-ad/,
but getting errors when running the following command - /usr/local/lib/
mavis/mavis_tacplus_ads.pl < /dev/null. This produces the following
error -

LDAP_HOSTS not defined at /usr/local/lib/mavis/mavis_tacplus_ldap.pl
line 272, <DATA> line 602.

I was originally getting - Can't locate Net/LDAP.pm in @INC, but since
installing http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/perl-ldap-0.39.tar.gz
that error has gone away and I'm now presented with the above error,
which I can't seem to resolve.

Any help would be gratefully appreciated.

Thanks,
Bob

Marc Huber

unread,
Feb 16, 2012, 2:43:28 PM2/16/12
to Event-Driven Servers
Hi Bob,

On 16 Feb., 14:27, Bob Lee <screamingr...@googlemail.com> wrote:
> LDAP_HOSTS not defined at /usr/local/lib/mavis/mavis_tacplus_ldap.pl
> line 272, <DATA> line 602.

the backend script expects the LDAP_HOSTS environment variable to be
set. For testing from the command line you'll have to supply that
variable (plus a couple of others), too.

env LDAP_HOSTS="172.16.0.3" /usr/local/lib/mavis/
mavis_tacplus_ldap.pl

Cheers,

Marc

Bob Lee

unread,
Feb 17, 2012, 12:01:30 PM2/17/12
to Event-Driven Servers
Hi Marc,

Thanks very much for the info. All up and running with Active
Directory authentication.

Keep up the good work.

Regards,
Bob

Tsolmonbaatar Adiyasuren

unread,
Feb 17, 2012, 11:17:47 PM2/17/12
to event-driv...@googlegroups.com
By the way how can I get script "mavis_tacplus_ldap.pl"?

--
You received this message because you are subscribed to the Google Groups "Event-Driven Servers" group.
To post to this group, send email to event-driv...@googlegroups.com.
To unsubscribe from this group, send email to event-driven-ser...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/event-driven-servers?hl=en.




--
Regards,
Цоомоо

Marc Huber

unread,
Feb 19, 2012, 2:39:48 PM2/19/12
to Event-Driven Servers
Hi,

On 18 Feb., 05:17, Tsolmonbaatar Adiyasuren <tsoom...@gmail.com>
wrote:
> By the way how can I get script "mavis_tacplus_ldap.pl"?

it's part of the tar archive (mavis/perl/).

Cheers,

Marc

Kanwar

unread,
Jan 6, 2016, 3:06:15 AM1/6/16
to Event-Driven Servers, marc.j...@googlemail.com
Hi Marc,

I am getting the same issue LDAP_HOSTS not defined at /usr/local/lib/mavis/mavis_tacplus_ldap.pl line 277, <DATA> line 747.after running this command:

/usr/local/lib/mavis/mavis_tacplus_ads.pl < /dev/null

Then I ran this command: 
env LDAP_HOSTS="10.10.64.2" /usr/local/lib/mavis/

Which gave me this error:
env: /usr/local/lib/mavis/: Permission denied

This is the output of the ls command for  /usr/local/lib/mavis/
s -lh /usr/local/lib/mavis/
total 80K
drwxr-xr-x 2 root root   81 Dec 30 15:11 extra
-rwxr-xr-x 1 root root 1.6K Dec 30 15:11 mavis_ftp_passwd.pl
-rwxr-xr-x 1 root root 4.4K Dec 30 15:11 mavis_ldap_authonly.pl
-rw-r--r-- 1 root root 6.0K Dec 30 15:11 Mavis.pm
-rwxr-xr-x 1 root root  306 Dec 30 15:11 mavis_tacplus_ads.pl
-rwxr-xr-x 1 root root  314 Dec 30 15:11 mavis_tacplus_ldap_authonly.pl
-rwxr-xr-x 1 root root  19K Dec 30 15:11 mavis_tacplus_ldap.pl
-rwxr-xr-x 1 root root 3.2K Dec 30 15:11 mavis_tacplus_opie.pl
-rwxr-xr-x 1 root root 4.4K Dec 30 15:11 mavis_tacplus_passwd.pl
-rwxr-xr-x 1 root root 3.8K Dec 30 15:11 mavis_tacplus_radius.pl
-rwxr-xr-x 1 root root 6.0K Dec 30 15:11 mavis_tacplus_shadow.pl
-rwxr-xr-x 1 root root 5.6K Dec 30 15:11 mavis_tacplus_sms.pl 
 
How do i get rid of this problem ?
Please help me out.

Regards
Kanwar

Marc Huber

unread,
Jan 17, 2016, 9:03:02 AM1/17/16
to Event-Driven Servers
Hi Kanwar,


On 05.01.16 23:55, Kanwar wrote:
env LDAP_HOSTS="10.10.64.2" /usr/local/lib/mavis/

Which gave me this error:
env: /usr/local/lib/mavis/: Permission denied

looks fine to me. You can't execute a directory.

Cheers,

Marc
Reply all
Reply to author
Forward
0 new messages