Page MenuHomePhabricator

Mail is not delivered
Closed, ResolvedPublic

Description

I don't know if it is related to fba5006123579909681ca10fdf176d4c8ad4e2f2, but localuser and maintainers now fail on tools-mail, thus stopping all mail from being delivered:

root@tools-mail:~# localuser scfc
id: : No such user
root@tools-mail:~# maintainers grantsbot
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)

root@tools-mail:~# maintainers tools.grantsbot
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)

root@tools-mail:~#

localuser (for example) uses the code:

BIND="-D $(sed -ne '/^binddn\s/{;s/.*\s\(.*\)/\1/;p;}' /etc/ldap.conf)"
BIND="$BIND -w $(sed -ne '/^bindpw\s/{;s/.*\s\(.*\)/\1/;p;}' /etc/ldap.conf)"
echo $(
  /usr/bin/ldapsearch -LLL $BIND -b "uid=$2,ou=people,dc=wikimedia,dc=org" mail |
        /bin/sed -ne '/^mail: \(.*\)/{;s//\1,/;p;}'
) | sed -e 's/,\s*$//'

This executes the command line:

/usr/bin/ldapsearch -LLL -D cn=proxyagent,ou=profile,dc=wikimedia,dc=org -w $wellknownpassword -b uid=scfc,ou=people,dc=wikimedia,dc=org mail

so the parsing of the credentials doesn't seem to be the problem, but some issue on the server side?

Event Timeline

scfc raised the priority of this task from to Unbreak Now!.
scfc updated the task description. (Show Details)
scfc added a project: Toolforge.
scfc moved this task to Ready to be worked on on the Toolforge board.
scfc added subscribers: scfc, akosiaris.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

NB: My test of localuser scfc should have been localuser tools scfc:

root@tools-mail:~# localuser tools scfc
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)

root@tools-mail:~#
root@tools-mail:~# localuser tools scfc
tim@tim-landscheidt.de

This seems to work fine. Since it uses /etc/ldap.conf and not /etc/ldap/ldap.conf should not have been impacted by rOPUPfba5006123579909681ca10fdf176d4c8ad4e2f2. Plus that has been reverted

scfc claimed this task.

Indeed it works now and the queue is empty. Hmmm.

scfc removed scfc as the assignee of this task.Oct 21 2015, 2:53 PM
scfc set Security to None.