What about something like this:
 
base = cn=Users,dc=your,dc=dom
scope = subtree
user_filter = (mail=%u)
pass_filter = (mail=%u)
pass_attrs = mail=%u,= userPassword=password
 
Tis way I auth my Users with dovecot in a samba4 domain using the "mail".
You need to sogo to find the user in "mail".
 
 SOGoUserSources = (
    {
      type = ldap;
      CNFieldName = cn;
      UIDFieldName = sAMAccountName;
      IMAPLoginFieldName = mail;
      baseDN = "CN=users,dc=your,dc=domain";
      bindDN = "CN=sogo MS,CN=users,DC=your,DC=domain";
      bindFields = (sAMAccountName, mail);
      bindPassword = password;
      canAuthenticate = YES;
      displayName = "Public";
      hostname = ldap://your.own.server:389;
      filter = "mail = '*'";
      id = directory;
      isAddressBook = YES;
    }
Gesendet: Donnerstag, 17. Dezember 2015 um 17:23 Uhr
Von: "Szládovics Péter" <p...@szladovics.hu>
An: "SOGo lista" <users@sogo.nu>
Betreff: [SOGo] Login EAS with email address
Hi Guys,

I have multidomain supported environment based on SambaAD. It's working
fine.
I created a php script for handling EAS autodiscover. The test is OK in
MS test page (domain zones has correct SRV records).
But the phone cannot configurable automatically, because the phone tries
the first login with the email address.
I configured the bindfields in all sogo usersources for handle the mail
property, not just the cn.
The cn is already usable for login, but the mail address is not.
This is the log:
Dec 17 17:13:42 sogod [22918]: <0x0x7f951d4ae448[LDAPSource]>
<NSException: 0x7f951de30108> NAME:LDAPException REASON:operation bind
failed: Invalid credentials (0x31) INFO:{"error_code" = 49; login =
"cn=user@domain,ou=oneofous,ou=mailou,dc=some,dc=where"; }

The dn is invalid, because the cn != the mail...

How can I configure this feature correctly?

Thanks,
Peti
--
users@sogo.nu
https://inverse.ca/sogo/lists

Reply via email to