[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Weird SASL thing

Rick Stevens wrote:
I've created a fairly simple
shell script that creates an appropriate LDIF file to add users to my
database.  It then calls "ldapadd" to add the user:

    RES=`ldapadd -U root -w $LDAPPWD -f $OUTFILE`

However, when the script runs, the ldapadd is rejected with:

    ldap_sasl_interactive_bind_s: Invalid credentials (49)

The EXACT SAME command (after the variables are expanded) run from the
command line works fine.

Could you please check that it's *exactly* the same line by adding a line with "echo $RES" as test output to your script?

Ciao, Michael.