logo       

Re: -bash: [: : integer expression expected: msg#00025

ldap.padl.nss

Subject: Re: -bash: [: : integer expression expected

Daniel,

the use of '*' for the password field is standard practice and SHOULD not be the cause of this problem. I do not remember from the previous message what platform you are running on. On our FC5 system the id utility comes from coreutils and we run 5.97-1.2 which works with ldap/AD users. I suggest you find a compatible version for your box and see if that fixes the problem. It is possible that id uses regex in spliting the data and has misinterpreted the '*' as a pattern. This is a complete guess. Also, try to run the following as your user on the failing system

getent passwd dcross
getent passwd | grep dcross

If you do not get the same answer you have a problem with nscd or permissions accessing the LDAP database as a standard user rather than root.

If you want I will read through your ldap.conf and see if I can see any problems.

Regards, Howard.

Daniel Cross wrote:
On Thu, 2006-09-14 at 07:14 +0100, Howard Wilkinson wrote:
  
Somewhere in the .bashrc, .bash_profile or /etc/profile ... files is
an _expression_ of the form

if [ .... ] ; then

The ... contents contains a reference to something derived from a
userid or a groupid and is not getting set when the group or passwd
map is being interrogated. Something broke in your upgrade. Check the
results of getent passwd and getent group to see if a user no longer
shows up or if an entry is malformed.
    

Ahh yes, I see in /etc/profile:
if [ "`id -u`" -eq 0 ]; then
  
However id -u doesn't return anything, hence the 'integer _expression_'
error.

So this is a syptom rather than the underlying problem.

Now upon doing a getent passwd I notice something I missed earlier:
sshd:x:101:65534::/var/run/sshd:/bin/false
snmp:x:103:65534::/var/lib/snmp:/bin/false
dcross:*:2001:2001:dcross:/home/users/dcross:/bin/sh

dcross is my user in ldap. That asterisk looks a bit out of place.

If I run the same in a server that is still running libnss-ldap 238 I
see:
snmp:x:103:65534::/var/lib/snmp:/bin/false
dcross:x:2001:2001:dcross:/home/users/dcross:/bin/sh

getent group looks the same (asterisk vs x).

I've gone through the nss-ldap conf and cannot see anything that causes
this. It just leaves me quite stumped.

Ideas?

Thanks
  

--
Signature

Howard Wilkinson

Phone:

+44(20)76907075

Coherent Technology Limited

Fax:

 

23 Northampton Square,

Mobile:

+44(7980)639379

London, United Kingdom, EC1V 0HL

Email:

howard@xxxxxxxxxxx

 

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise