Re: [squid-users] WARNING: Cannot run /usr/local/squid/libexec/my_helper process.

From: Tomasz Chmielewski <mangoo@dont-contact.us>
Date: Tue, 13 Jul 2004 15:13:26 +0200

Elsen Marc wrote:

> So what if user 'squid' executes squid_ldap_auth in a shell as a test
> for example ?

It works:

su squid

squid@pf /usr/local/squid/libexec$ ./squid_ldap_auth
Usage: squid_ldap_auth -b basedn [options] [ldap_server_name[:port]]...

         -b basedn (REQUIRED) base dn under which to search
         -f filter search filter to locate user DN
         -u userattr username DN attribute
         -s base|one|sub search scope
         -D binddn DN to bind as to perform searches
         -w bindpasswd password for binddn
         -W secretfile read password for binddn from file
secretfile
(...)

squid@pf /usr/local/squid/libexec$
/usr/local/squid/libexec/squid_ldap_auth -h 192.168.2.3 -v 3 -R -b
"dc=edu" -D "cn=Squid LDAP search,cn=Users,dc=edu" -w squidLDAP -f
"(&(sAMAccountName=%s)(objectClass=Person))"

ERR

ERR

Pay attention to that:

2004/07/13 14:27:34| helperOpenServers: Starting 5 'test' processes
2004/07/13 14:27:35| WARNING: Cannot run '/usr/local/squid/sbin/test'
process.
2004/07/13 14:27:38| WARNING: Cannot run '/usr/local/squid/sbin/test'
process.
2004/07/13 14:27:41| WARNING: Cannot run '/usr/local/squid/sbin/test'
process.
2004/07/13 14:27:44| WARNING: Cannot run '/usr/local/squid/sbin/test'
process.
2004/07/13 14:27:47| WARNING: Cannot run '/usr/local/squid/sbin/test'
process.

squid@pf /usr/local/squid/libexec$ cat /usr/local/squid/sbin/test
#!/bin/bash

ls -l >/tmp/proba
Received on Tue Jul 13 2004 - 07:13:28 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Aug 01 2004 - 12:00:01 MDT