Messages generated by ndspath might break other utilities

  • 7003359
  • 27-May-2009
  • 26-Apr-2012

Environment

Novell eDirectory 8.8.5 for Linux

Situation

In eDirectory 8.8.5 the /opt/novell/eDirectory/bin/ndspath script generates the following message after a successful run:

"Setting eDirectory binary path to ..."

If the ndspath script is called from a file which is used during the login sequence (.bashrc, profile files), it might break other applications, like 'scp'. Scp will not copy the data as it is not expecting any messages during the authentication procedure. An example is shown below:

foo:~ # scp test.txt root@bar:/root/
Password:

Setting eDirectory binary path to /opt/novell/eDirectory/bin ...
foo:~ #

Resolution

Novell Engineering was asked to work around this case, however eDirectory is already setting the library path in /etc/profile.d/ndssource.sh - so calling the ndspath script during the login procedure is not necessary anymore.

Should it be still necessary for any reasons, the calling script needs to run ndspath on a way that it does not generate any messages - for example by:

. /opt/novell/eDirectory/bin/ndspath &> /dev/null