Re: [SOGo] AD LDAP SOGoUserSources

2019-01-25 Thread Michael Hekeler
its always easier to brak a complex problem down into small parts.
For AD auth with sogo I would suggest to install some ldap command
line client and test if I can access ldap first.

And if this is working then in the next step configure sogo with
the same auth params.





> Am 25.01.2019 um 10:14 schrieb Rowland Penny (rpenny241...@gmail.com)
> :
> 
> On Thu, 24 Jan 2019 14:48:01 -0800
> "Carl Doss" (cd...@bahaicenter.net)  wrote:
> 
> 
>>> 
 On 1/24/2019 1:28 PM, Matthew Valdez (maval...@ludlums.com) wrote:
 Hello,
 
 I am trying to setup the SOGoUserSources by using Active Directory 
 and LDAP and for some reason I cannot seem to get it to work. I am 
 able to login if I use the type SQL, but cannot seem to get it to 
 work with ldap. Any help would be appreciate, this is what I have
 for SOGoUserSources, of course modified a little to share with you
 all.
 
 
 SOGoUserSources = (
 {
 type = ldap;
 CNFieldName = cn;
 IDFieldName = uid;
 UIDFieldName = uid;
 baseDN= "cn=Users,dc=domain,dc=local";
 bindDN   = 
 "cn=sogo,cn=Users,dc=domain,dc=local";
 bindPassword= password;
 canAuthenticate = YES;
 displayName= "Shared Addresses";
 hostname= "ldap://dns.dc.local:389;;
 id = public;
 isAddressBook   = YES;
 }
 );
 
> 
> Taking this:
> 
> cn=Users,dc=domain,dc=local
> 
> and this:
> 
> ldap://dns.dc.local:389
> 
> into account, is the FQDN of the AD DC really
> 'dns.dc.local' ?
> 
> To put it another way, they do not match, 'dc=domain,dc=local' will
> come from your dns domain 'domain.local' so the 'hostname' should be
> 'ldap://' or 'ldap://.domain.local'
> 
> Rowland
> 
> 
> -- 
> users@sogo.nu
> https://inverse.ca/sogo/lists
-- 
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] AD LDAP SOGoUserSources

2019-01-25 Thread Matthew Valdez

I appreciate all the help I got it now. Had to make a few modifications.


{
    SOGoUserSources = (
    {
    type    = ldap;
    CNFieldName = cn;
    IDFieldName = uid;
    UIDFiledName    = sAMAccountName;
    baseDN  = "CN=Users,DC=domain,DC=local";
    bindDN  = "CN=Sogo 
User,CN=Users,DC=domain,DC=local";

    bindFields  = (sAMAccountName);
    bindPassword    = password;
    canAuthenticate = YES;
    displayName = "Active Directory";
    hostname    = "ldap://dnsip:389;;
    id  = directory;
    isAddressBook   = YES;
    }
    );

Thanks,


-Matthew

On 1/24/2019 4:48 PM, Carl Doss (cd...@bahaicenter.net) wrote:

type=ldap;
    type=ldap;
    CNFieldName = cn;
    IDFieldName = cn;
    UIDFieldName = sAMAccountName;
    baseDN = "cn=Users,dc=domain,dc=local";
    bindDN = "cn=sogo,cn=Users,dc=domain,dc=local";
    bindPassword = password;
    bindFields = (sAMAccountName);
    canAuthenticate = YES;
    displayName = "Active Directory";
    hostname = ldap://dns.dc.local:;
    id = directory;
    isAddressBook = YES;

On 1/24/2019 2:20 PM, Carl Doss (cd...@bahaicenter.net) wrote:

I hate to ask a stupid question but did you set up kerberose

On 1/24/2019 1:28 PM, Matthew Valdez (maval...@ludlums.com) wrote:

Hello,

I am trying to setup the SOGoUserSources by using Active Directory 
and LDAP and for some reason I cannot seem to get it to work. I am 
able to login if I use the type SQL, but cannot seem to get it to 
work with ldap. Any help would be appreciate, this is what I have 
for SOGoUserSources, of course modified a little to share with you all.



    SOGoUserSources = (
    {
            type             = ldap;
            CNFieldName     = cn;
            IDFieldName     = uid;
            UIDFieldName     = uid;
            baseDN            = "cn=Users,dc=domain,dc=local";
            bindDN           = 
"cn=sogo,cn=Users,dc=domain,dc=local";

            bindPassword    = password;
            canAuthenticate = YES;
            displayName        = "Shared Addresses";
            hostname        = "ldap://dns.dc.local:389;;
            id             = public;
            isAddressBook   = YES;
    }
    );

Thanks,


-Matthew



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


Re: [SOGo] AD LDAP SOGoUserSources

2019-01-25 Thread Rowland Penny
On Thu, 24 Jan 2019 14:48:01 -0800
"Carl Doss" (cd...@bahaicenter.net)  wrote:


> >
> > On 1/24/2019 1:28 PM, Matthew Valdez (maval...@ludlums.com) wrote:
> >> Hello,
> >>
> >> I am trying to setup the SOGoUserSources by using Active Directory 
> >> and LDAP and for some reason I cannot seem to get it to work. I am 
> >> able to login if I use the type SQL, but cannot seem to get it to 
> >> work with ldap. Any help would be appreciate, this is what I have
> >> for SOGoUserSources, of course modified a little to share with you
> >> all.
> >>
> >>
> >>     SOGoUserSources = (
> >>     {
> >>             type             = ldap;
> >>             CNFieldName     = cn;
> >>             IDFieldName     = uid;
> >>             UIDFieldName     = uid;
> >>             baseDN            = "cn=Users,dc=domain,dc=local";
> >>             bindDN           = 
> >> "cn=sogo,cn=Users,dc=domain,dc=local";
> >>             bindPassword    = password;
> >>             canAuthenticate = YES;
> >>             displayName        = "Shared Addresses";
> >>             hostname        = "ldap://dns.dc.local:389;;
> >>             id             = public;
> >>             isAddressBook   = YES;
> >>     }
> >>     );
> >>

Taking this:

cn=Users,dc=domain,dc=local

and this:

ldap://dns.dc.local:389

into account, is the FQDN of the AD DC really
'dns.dc.local' ?

To put it another way, they do not match, 'dc=domain,dc=local' will
come from your dns domain 'domain.local' so the 'hostname' should be
'ldap://' or 'ldap://.domain.local'

Rowland
  

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

Re: [SOGo] AD LDAP SOGoUserSources

2019-01-25 Thread mj

Hi Matthew,

Did you set:
 SOGoAuthenticationMethod = LDAP;

Best,
MJ

On 1/24/19 10:28 PM, Matthew Valdez (maval...@ludlums.com) wrote:

Hello,

I am trying to setup the SOGoUserSources by using Active Directory and 
LDAP and for some reason I cannot seem to get it to work. I am able to 
login if I use the type SQL, but cannot seem to get it to work with 
ldap. Any help would be appreciate, this is what I have for 
SOGoUserSources, of course modified a little to share with you all.



     SOGoUserSources = (
     {
             type             = ldap;
             CNFieldName     = cn;
             IDFieldName     = uid;
             UIDFieldName     = uid;
             baseDN            = "cn=Users,dc=domain,dc=local";
             bindDN           = "cn=sogo,cn=Users,dc=domain,dc=local";
             bindPassword    = password;
             canAuthenticate = YES;
             displayName        = "Shared Addresses";
             hostname        = "ldap://dns.dc.local:389;;
             id             = public;
             isAddressBook   = YES;
     }
     );

Thanks,


-Matthew



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


Re: [SOGo] AD LDAP SOGoUserSources

2019-01-25 Thread goetz.reini...@filmakademie.de
Hi,

> Am 24.01.2019 um 22:28 schrieb Matthew Valdez (maval...@ludlums.com) 
> :
> 
> Hello,
> 
> I am trying to setup the SOGoUserSources by using Active Directory and LDAP 
> and for some reason I cannot seem to get it to work. I am able to login if I 
> use the type SQL, but cannot seem to get it to work with ldap. Any help would 
> be appreciate, this is what I have for SOGoUserSources, of course modified a 
> little to share with you all.
> 
> 
> SOGoUserSources = (
> {
> type = ldap;
> CNFieldName = cn;
> IDFieldName = uid;
> UIDFieldName = uid;
> baseDN= "cn=Users,dc=domain,dc=local";
> bindDN   = "cn=sogo,cn=Users,dc=domain,dc=local";
> bindPassword= password;
> canAuthenticate = YES;
> displayName= "Shared Addresses";
> hostname= "ldap://dns.dc.local:389;;
> id = public;
> isAddressBook   = YES;
> }
> );
> 

May be your AD is using SSL/starttls on port 389?

hostname = "ldap://dns.dc.local:389/!StartTLS 
“;

And I have a filter set:

filter = "mail = '*‘"

Regards . Götz



smime.p7s
Description: S/MIME cryptographic signature


Re: [SOGo] AD LDAP SOGoUserSources

2019-01-24 Thread Carl Doss

type=ldap;
    type=ldap;
    CNFieldName = cn;
    IDFieldName = cn;
    UIDFieldName = sAMAccountName;
    baseDN = "cn=Users,dc=domain,dc=local";
    bindDN = "cn=sogo,cn=Users,dc=domain,dc=local";
    bindPassword = password;
    bindFields = (sAMAccountName);
    canAuthenticate = YES;
    displayName = "Active Directory";
    hostname = ldap://dns.dc.local:;
    id = directory;
    isAddressBook = YES;

On 1/24/2019 2:20 PM, Carl Doss (cd...@bahaicenter.net) wrote:

I hate to ask a stupid question but did you set up kerberose

On 1/24/2019 1:28 PM, Matthew Valdez (maval...@ludlums.com) wrote:

Hello,

I am trying to setup the SOGoUserSources by using Active Directory 
and LDAP and for some reason I cannot seem to get it to work. I am 
able to login if I use the type SQL, but cannot seem to get it to 
work with ldap. Any help would be appreciate, this is what I have for 
SOGoUserSources, of course modified a little to share with you all.



    SOGoUserSources = (
    {
            type             = ldap;
            CNFieldName     = cn;
            IDFieldName     = uid;
            UIDFieldName     = uid;
            baseDN            = "cn=Users,dc=domain,dc=local";
            bindDN           = 
"cn=sogo,cn=Users,dc=domain,dc=local";

            bindPassword    = password;
            canAuthenticate = YES;
            displayName        = "Shared Addresses";
            hostname        = "ldap://dns.dc.local:389;;
            id             = public;
            isAddressBook   = YES;
    }
    );

Thanks,


-Matthew



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


Re: [SOGo] AD LDAP SOGoUserSources

2019-01-24 Thread Carl Doss

I hate to ask a stupid question but did you set up kerberose

On 1/24/2019 1:28 PM, Matthew Valdez (maval...@ludlums.com) wrote:

Hello,

I am trying to setup the SOGoUserSources by using Active Directory and 
LDAP and for some reason I cannot seem to get it to work. I am able to 
login if I use the type SQL, but cannot seem to get it to work with 
ldap. Any help would be appreciate, this is what I have for 
SOGoUserSources, of course modified a little to share with you all.



    SOGoUserSources = (
    {
            type             = ldap;
            CNFieldName     = cn;
            IDFieldName     = uid;
            UIDFieldName     = uid;
            baseDN            = "cn=Users,dc=domain,dc=local";
            bindDN           = "cn=sogo,cn=Users,dc=domain,dc=local";
            bindPassword    = password;
            canAuthenticate = YES;
            displayName        = "Shared Addresses";
            hostname        = "ldap://dns.dc.local:389;;
            id             = public;
            isAddressBook   = YES;
    }
    );

Thanks,


-Matthew



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


[SOGo] AD LDAP SOGoUserSources

2019-01-24 Thread Matthew Valdez

Hello,

I am trying to setup the SOGoUserSources by using Active Directory and 
LDAP and for some reason I cannot seem to get it to work. I am able to 
login if I use the type SQL, but cannot seem to get it to work with 
ldap. Any help would be appreciate, this is what I have for 
SOGoUserSources, of course modified a little to share with you all.



    SOGoUserSources = (
    {
            type             = ldap;
            CNFieldName     = cn;
            IDFieldName     = uid;
            UIDFieldName     = uid;
            baseDN            = "cn=Users,dc=domain,dc=local";
            bindDN           = "cn=sogo,cn=Users,dc=domain,dc=local";
            bindPassword    = password;
            canAuthenticate = YES;
            displayName        = "Shared Addresses";
            hostname        = "ldap://dns.dc.local:389;;
            id             = public;
            isAddressBook   = YES;
    }
    );

Thanks,


-Matthew


--
Matthew Valdez
Ludlum Measurements, Inc.
501 Oak Street
Sweetwater, TX 79556 USA
(325) 235-5494 Phone, ext:3393
maval...@ludlums.com

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