I have qmailUser with entried like this;
dn: uid=exebs_99999, dc=exebs,dc=org
uid: exebs_99999
uid: exebs_99999%exebs.org (we add this for pop3 login with domain)
We update the OpenLDAP server with jndi code that inserts attributes
like this;
Attribute uids = new BasicAttribute("uid");
uids.add(user.getUsername());
uids.add(user.getUsername() + "%exebs.org");
modItems.addElement(new ModificationItem(DirContext.REPLACE_ATTRIBUTE,
uids));
If I change the order in which these attributes are defined to
uids.add(user.getUsername() + "%exebs.org");
uids.add(user.getUsername());
Then all mail to this user is rejected with an error message;
Hi. This is the qmail-send program at ejc.ecomda.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.
<[EMAIL PROTECTED]>:
LDAP attribute qmailUser contains illegal characters. (LDAP-ERR #210)
This leads me to believe that either doesn't qmail-ldap like multivalue
uid's, which the qmailUser scheme allows, or it doesn't like the % char
in the username.
Shurely I cannot rely on the ldap server to keep the insertion order on
multivalue attributes, so I need to fix this somehow.
--
-Torgeir