Re: [SOGo] how exclude a mail address from global address list

2015-07-17 Thread Yavuz Maşlak


On 15/07/15 18:16, Christian M. Jensen cmjscrip...@yahoo.com wrote:

Hi,

On 15-07-2015 16:56, Yavuz Maşlak wrote:

 On 15/07/15 16:25, Francis Lachapelle flachape...@inverse.ca wrote:

 Hello Yavuz

 On Jul 15, 2015, at 3:23 AM, Yavuz Maşlak yavuz.mas...@ihlas.com.tr
 wrote:


 i have 3 domains  ( for example  a.com  b.comc.com ).

 Users of A.com  and b.com  can see eachother but c.com
 C.com ¹s users can only see eachother but other domains.

 How can i do that ?

 Could you give me an example?
 This should do it:

 SOGoDomainsVisibility = ( (a.com, b.com), (c.com) );


 Francis--
 users@sogo.nu
 https://inverse.ca/sogo/lists
 I tried now. Unfortunately, it does not work.
 Whan can be the problem ?


How do you define your domains in SOGo configuration?

if your just set all your configuration in  'SOGoUserSources' then SOGo
has no way of detecting what user source belong to what domain
but if you use the 'Domains' value then 'SOGoDomainsVisibility' will
work as expected

using the domain parameter:

  domains = {
 domain.com = {
 SOGoMailDomain = domain.com;
 SOGoSuperUsernames = (
 postmas...@domain.com
 );
 SOGoUserSources = (
 {
 type = sql;
 id = sql-auth;
 isAddressBook = NO;
 .
 },
 {
 type = sql;
 id = sql_addressbook;
 isAddressBook = YES;
 .
 }
 );
 };
 domain1.com = {
 SOGoMailDomain = domain1.com;
 SOGoSuperUsernames = (
 postmas...@domain1.com
 );
 SOGoUserSources = (
 {
 type = ldap;
 id = ldap_auth;
 isAddressBook = NO;
 .
 },
 {
 type = ldap;
 id = ldap_addressbook;
 isAddressBook = YES;
 .
 }
 );
 };
};


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

Hi

Does ldap id have to be different for every domain in Sogousersources?
SOGoDomainsVisibility does not work in my conf.


My sogo.conf;
###
{
SOGoDebugRequests = YES;
 LDAPDebugEnabled = YES;
SOGoEASDebugEnabled = YES;
WOWorkersCount = 50;
WOPort = 127.0.0.1:2;
WOLogFile = /var/log/sogo/sogo.log;
SOGoProfileURL =
mysql://sogo:PASS@127.0.0.1:3306/sogo/sogo_user_profile;
OCSFolderInfoURL =
mysql://sogo:PASS@127.0.0.1:3306/sogo/sogo_folder_info;
OCSSessionsFolderURL =
mysql://sogo:PASS@127.0.0.1:3306/sogo/sogo_sessions_folder;
SOGoLanguage = English;
SOGoLoginModule = Mail;
SOGoForceExternalLoginWithEmail = YES;
SOGoMailCustomFromEnabled = YES;
SOGoEnableEMailAlarms = YES;
SOGoIMAPServer = imap://127.0.0.1:143/;

SOGoDomainsVisibility = ( (domain.com, domain1.com), (domain2.com) );

SOGoMailingMechanism = smtp;
SOGoSMTPServer = 127.0.0.1;
SOGoMemcachedHost = 127.0.0.1;
SOGoTimeZone = Asia/Istanbul;
SOGoFirstDayOfWeek = 1;
SOGoRefreshViewCheck = every_5_minutes;
SOGoMailReplyPlacement = below;
SOGoAppointmentSendEMailNotifications = YES;
SOGoFoldersSendEMailNotifications = YES;
SOGoACLsSendEMailNotifications = YES;
SOGoPasswordChangeEnabled = YES;
SQL backend */

domains = {
   “domain.com = {
   SOGoMailDomain = “domain.com;
   SOGoUserSources = (
   {
   type = ldap;
   hostname = ldap://127.0.0.1:389;;
   baseDN = o=domains,dc=root,dc=com;
   bindDN = cn=vmailadmin,dc=root,dc=com;
   bindPassword = “PASS”;
   filter = objectClass=mailUser AND accountStatus=active;
   scope = SUB;
   userPasswordAlgorithm = ssha;
   IDFieldName = mail;
   bindFields = (mail);
   CNFieldName = cn;
   UIDFieldName = mail;
   IMAPLoginFieldName = mail;
   SearchFieldNames = (cn, sn, displayName, telephoneNumber,
mail, shadowAddress);
   canAuthenticate = YES;
   displayName = LDAP Auth;
   id = ldap_auth;
   isAddressBook = NO;
   },
   {
   type = ldap;
   hostname = ldap://127.0.0.1:389;;
   baseDN = o=domains,dc=root,dc=com;
   bindDN = cn=vmailadmin,dc=root,dc=com;
   bindPassword = “PASS”;
   filter = objectClass=mailUser AND accountStatus=active AND
enabledService=mail;
   scope = SUB;
   userPasswordAlgorithm = ssha;
   IDFieldName = mail;
   bindFields = (mail);
   

Re: [SOGo] how exclude a mail address from global address list

2015-07-17 Thread Francis Lachapelle

 On Jul 17, 2015, at 1:29 AM, Yavuz Maşlak yavuz.mas...@ihlas.com.tr wrote:
 
 
 
 On 15/07/15 18:16, Christian M. Jensen cmjscrip...@yahoo.com wrote:
 
 Hi,
 
 On 15-07-2015 16:56, Yavuz Maşlak wrote:
 
 On 15/07/15 16:25, Francis Lachapelle flachape...@inverse.ca wrote:
 
 Hello Yavuz
 
 On Jul 15, 2015, at 3:23 AM, Yavuz Maşlak yavuz.mas...@ihlas.com.tr
 wrote:
 
 
 i have 3 domains  ( for example  a.com  b.comc.com ).
 
 Users of A.com  and b.com  can see eachother but c.com
 C.com ¹s users can only see eachother but other domains.
 
 How can i do that ?
 
 Could you give me an example?
 This should do it:
 
 SOGoDomainsVisibility = ( (a.com, b.com), (c.com) );
 
 
 Francis--
 users@sogo.nu
 https://inverse.ca/sogo/lists
 I tried now. Unfortunately, it does not work.
 Whan can be the problem ?
 
 
 How do you define your domains in SOGo configuration?
 
 if your just set all your configuration in  'SOGoUserSources' then SOGo
 has no way of detecting what user source belong to what domain
 but if you use the 'Domains' value then 'SOGoDomainsVisibility' will
 work as expected
 
 using the domain parameter:
 
 domains = {
domain.com = {
SOGoMailDomain = domain.com;
SOGoSuperUsernames = (
postmas...@domain.com
);
SOGoUserSources = (
{
type = sql;
id = sql-auth;
isAddressBook = NO;
.
},
{
type = sql;
id = sql_addressbook;
isAddressBook = YES;
.
}
);
};
domain1.com = {
SOGoMailDomain = domain1.com;
SOGoSuperUsernames = (
postmas...@domain1.com
);
SOGoUserSources = (
{
type = ldap;
id = ldap_auth;
isAddressBook = NO;
.
},
{
type = ldap;
id = ldap_addressbook;
isAddressBook = YES;
.
}
);
};
 };
 
 
 Regards
 Christian Jensen
 -- 
 users@sogo.nu
 https://inverse.ca/sogo/lists
 
 Hi
 
 Does ldap id have to be different for every domain in Sogousersources?
 SOGoDomainsVisibility does not work in my conf.



 My sogo.conf;
 ###
 {
SOGoDebugRequests = YES;
 LDAPDebugEnabled = YES;
SOGoEASDebugEnabled = YES;
WOWorkersCount = 50;
WOPort = 127.0.0.1:2;
WOLogFile = /var/log/sogo/sogo.log;
SOGoProfileURL =
 mysql://sogo:PASS@127.0.0.1:3306/sogo/sogo_user_profile;
OCSFolderInfoURL =
 mysql://sogo:PASS@127.0.0.1:3306/sogo/sogo_folder_info;
OCSSessionsFolderURL =
 mysql://sogo:PASS@127.0.0.1:3306/sogo/sogo_sessions_folder;
SOGoLanguage = English;
SOGoLoginModule = Mail;
SOGoForceExternalLoginWithEmail = YES;
SOGoMailCustomFromEnabled = YES;
SOGoEnableEMailAlarms = YES;
SOGoIMAPServer = imap://127.0.0.1:143/;
 
SOGoDomainsVisibility = ( (domain.com, domain1.com), (domain2.com) );
 
SOGoMailingMechanism = smtp;
SOGoSMTPServer = 127.0.0.1;
SOGoMemcachedHost = 127.0.0.1;
SOGoTimeZone = Asia/Istanbul;
SOGoFirstDayOfWeek = 1;
SOGoRefreshViewCheck = every_5_minutes;
SOGoMailReplyPlacement = below;
SOGoAppointmentSendEMailNotifications = YES;
SOGoFoldersSendEMailNotifications = YES;
SOGoACLsSendEMailNotifications = YES;
SOGoPasswordChangeEnabled = YES;
SQL backend */
 
domains = {
   “domain.com = {
   SOGoMailDomain = “domain.com;
   SOGoUserSources = (
   {
   type = ldap;
   hostname = ldap://127.0.0.1:389;;
   baseDN = o=domains,dc=root,dc=com;
   bindDN = cn=vmailadmin,dc=root,dc=com;
   bindPassword = “PASS”;
   filter = objectClass=mailUser AND accountStatus=active;
   scope = SUB;
   userPasswordAlgorithm = ssha;
   IDFieldName = mail;
   bindFields = (mail);
   CNFieldName = cn;
   UIDFieldName = mail;
   IMAPLoginFieldName = mail;
   SearchFieldNames = (cn, sn, displayName, telephoneNumber,
 mail, shadowAddress);
   canAuthenticate = YES;
   displayName = LDAP Auth;
   id = ldap_auth;
   isAddressBook = NO;
   },
   {
   type = ldap;
   hostname = ldap://127.0.0.1:389;;
   baseDN = o=domains,dc=root,dc=com;
   bindDN = cn=vmailadmin,dc=root,dc=com;
   bindPassword = “PASS”;
   filter = objectClass=mailUser AND accountStatus=active AND
 enabledService=mail;
   scope = SUB;
   userPasswordAlgorithm = 

Re: [SOGo] how exclude a mail address from global address list

2015-07-17 Thread Yavuz Maşlak


On 17/07/15 17:13, Francis Lachapelle flachape...@inverse.ca wrote:


 On Jul 17, 2015, at 1:29 AM, Yavuz Maşlak yavuz.mas...@ihlas.com.tr
wrote:
 
 
 
 On 15/07/15 18:16, Christian M. Jensen cmjscrip...@yahoo.com wrote:
 
 Hi,
 
 On 15-07-2015 16:56, Yavuz Maşlak wrote:
 
 On 15/07/15 16:25, Francis Lachapelle flachape...@inverse.ca
wrote:
 
 Hello Yavuz
 
 On Jul 15, 2015, at 3:23 AM, Yavuz Maşlak
yavuz.mas...@ihlas.com.tr
 wrote:
 
 
 i have 3 domains  ( for example  a.com  b.comc.com ).
 
 Users of A.com  and b.com  can see eachother but c.com
 C.com ¹s users can only see eachother but other domains.
 
 How can i do that ?
 
 Could you give me an example?
 This should do it:
 
 SOGoDomainsVisibility = ( (a.com, b.com), (c.com) );
 
 
 Francis--
 users@sogo.nu
 https://inverse.ca/sogo/lists
 I tried now. Unfortunately, it does not work.
 Whan can be the problem ?
 
 
 How do you define your domains in SOGo configuration?
 
 if your just set all your configuration in  'SOGoUserSources' then SOGo
 has no way of detecting what user source belong to what domain
 but if you use the 'Domains' value then 'SOGoDomainsVisibility' will
 work as expected
 
 using the domain parameter:
 
 domains = {
domain.com = {
SOGoMailDomain = domain.com;
SOGoSuperUsernames = (
postmas...@domain.com
);
SOGoUserSources = (
{
type = sql;
id = sql-auth;
isAddressBook = NO;
.
},
{
type = sql;
id = sql_addressbook;
isAddressBook = YES;
.
}
);
};
domain1.com = {
SOGoMailDomain = domain1.com;
SOGoSuperUsernames = (
postmas...@domain1.com
);
SOGoUserSources = (
{
type = ldap;
id = ldap_auth;
isAddressBook = NO;
.
},
{
type = ldap;
id = ldap_addressbook;
isAddressBook = YES;
.
}
);
};
 };
 
 
 Regards
 Christian Jensen
 -- 
 users@sogo.nu
 https://inverse.ca/sogo/lists
 
 Hi
 
 Does ldap id have to be different for every domain in Sogousersources?
 SOGoDomainsVisibility does not work in my conf.



 My sogo.conf;
 ###
 {
SOGoDebugRequests = YES;
 LDAPDebugEnabled = YES;
SOGoEASDebugEnabled = YES;
WOWorkersCount = 50;
WOPort = 127.0.0.1:2;
WOLogFile = /var/log/sogo/sogo.log;
SOGoProfileURL =
 mysql://sogo:PASS@127.0.0.1:3306/sogo/sogo_user_profile;
OCSFolderInfoURL =
 mysql://sogo:PASS@127.0.0.1:3306/sogo/sogo_folder_info;
OCSSessionsFolderURL =
 mysql://sogo:PASS@127.0.0.1:3306/sogo/sogo_sessions_folder;
SOGoLanguage = English;
SOGoLoginModule = Mail;
SOGoForceExternalLoginWithEmail = YES;
SOGoMailCustomFromEnabled = YES;
SOGoEnableEMailAlarms = YES;
SOGoIMAPServer = imap://127.0.0.1:143/;
 
SOGoDomainsVisibility = ( (domain.com, domain1.com), (domain2.com)
);
 
SOGoMailingMechanism = smtp;
SOGoSMTPServer = 127.0.0.1;
SOGoMemcachedHost = 127.0.0.1;
SOGoTimeZone = Asia/Istanbul;
SOGoFirstDayOfWeek = 1;
SOGoRefreshViewCheck = every_5_minutes;
SOGoMailReplyPlacement = below;
SOGoAppointmentSendEMailNotifications = YES;
SOGoFoldersSendEMailNotifications = YES;
SOGoACLsSendEMailNotifications = YES;
SOGoPasswordChangeEnabled = YES;
SQL backend */
 
domains = {
   “domain.com = {
   SOGoMailDomain = “domain.com;
   SOGoUserSources = (
   {
   type = ldap;
   hostname = ldap://127.0.0.1:389;;
   baseDN = o=domains,dc=root,dc=com;
   bindDN = cn=vmailadmin,dc=root,dc=com;
   bindPassword = “PASS”;
   filter = objectClass=mailUser AND accountStatus=active;
   scope = SUB;
   userPasswordAlgorithm = ssha;
   IDFieldName = mail;
   bindFields = (mail);
   CNFieldName = cn;
   UIDFieldName = mail;
   IMAPLoginFieldName = mail;
   SearchFieldNames = (cn, sn, displayName, telephoneNumber,
 mail, shadowAddress);
   canAuthenticate = YES;
   displayName = LDAP Auth;
   id = ldap_auth;
   isAddressBook = NO;
   },
   {
   type = ldap;
   hostname = ldap://127.0.0.1:389;;
   baseDN = o=domains,dc=root,dc=com;
   bindDN = cn=vmailadmin,dc=root,dc=com;
   bindPassword = “PASS”;
   filter = objectClass=mailUser AND accountStatus=active
AND
 

Re: [SOGo] how exclude a mail address from global address list

2015-07-16 Thread Yavuz Maşlak


On 15/07/15 18:16, Christian M. Jensen cmjscrip...@yahoo.com wrote:

Hi,

On 15-07-2015 16:56, Yavuz Maşlak wrote:

 On 15/07/15 16:25, Francis Lachapelle flachape...@inverse.ca wrote:

 Hello Yavuz

 On Jul 15, 2015, at 3:23 AM, Yavuz Maşlak yavuz.mas...@ihlas.com.tr
 wrote:


 i have 3 domains  ( for example  a.com  b.comc.com ).

 Users of A.com  and b.com  can see eachother but c.com
 C.com ¹s users can only see eachother but other domains.

 How can i do that ?

 Could you give me an example?
 This should do it:

 SOGoDomainsVisibility = ( (a.com, b.com), (c.com) );


 Francis--
 users@sogo.nu
 https://inverse.ca/sogo/lists
 I tried now. Unfortunately, it does not work.
 Whan can be the problem ?


How do you define your domains in SOGo configuration?

if your just set all your configuration in  'SOGoUserSources' then SOGo
has no way of detecting what user source belong to what domain
but if you use the 'Domains' value then 'SOGoDomainsVisibility' will
work as expected

using the domain parameter:

  domains = {
 domain.com = {
 SOGoMailDomain = domain.com;
 SOGoSuperUsernames = (
 postmas...@domain.com
 );
 SOGoUserSources = (
 {
 type = sql;
 id = sql-auth;
 isAddressBook = NO;
 .
 },
 {
 type = sql;
 id = sql_addressbook;
 isAddressBook = YES;
 .
 }
 );
 };
 domain1.com = {
 SOGoMailDomain = domain1.com;
 SOGoSuperUsernames = (
 postmas...@domain1.com
 );
 SOGoUserSources = (
 {
 type = ldap;
 id = ldap_auth;
 isAddressBook = NO;
 .
 },
 {
 type = ldap;
 id = ldap_addressbook;
 isAddressBook = YES;
 .
 }
 );
 };
};


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

Ok I edited now, i restarted sogo but  SOGoDomainsVisibility = ( (a.com,
b.com), (c.com) ); “ directive doesn’t appear to work .
But at least i can use filter for another domains as we defined for every
domain seperately.

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

[SOGo] how exclude a mail address from global address list

2015-07-15 Thread Yavuz Maşlak

 i have 3 domains  ( for example  a.com  b.comc.com ).

Users of A.com  and b.com  can see eachother but c.com
C.com ¹s users can only see eachother but other domains.

How can i do that ?

Could you give me an example?



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

Re: [SOGo] how exclude a mail address from global address list

2015-07-15 Thread Francis Lachapelle
Hello Yavuz

 On Jul 15, 2015, at 3:23 AM, Yavuz Maşlak yavuz.mas...@ihlas.com.tr wrote:
 
 
 i have 3 domains  ( for example  a.com  b.comc.com ).
 
 Users of A.com  and b.com  can see eachother but c.com
 C.com ¹s users can only see eachother but other domains.
 
 How can i do that ?
 
 Could you give me an example?

This should do it:

SOGoDomainsVisibility = ( (a.com, b.com), (c.com) );


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

Re: [SOGo] how exclude a mail address from global address list

2015-07-15 Thread Christian M. Jensen

Hi,

On 15-07-2015 16:56, Yavuz Maşlak wrote:


On 15/07/15 16:25, Francis Lachapelle flachape...@inverse.ca wrote:


Hello Yavuz


On Jul 15, 2015, at 3:23 AM, Yavuz Maşlak yavuz.mas...@ihlas.com.tr
wrote:


i have 3 domains  ( for example  a.com  b.comc.com ).

Users of A.com  and b.com  can see eachother but c.com
C.com ¹s users can only see eachother but other domains.

How can i do that ?

Could you give me an example?

This should do it:

SOGoDomainsVisibility = ( (a.com, b.com), (c.com) );


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

I tried now. Unfortunately, it does not work.
Whan can be the problem ?



How do you define your domains in SOGo configuration?

if your just set all your configuration in  'SOGoUserSources' then SOGo 
has no way of detecting what user source belong to what domain
but if you use the 'Domains' value then 'SOGoDomainsVisibility' will 
work as expected


using the domain parameter:

 domains = {
domain.com = {
SOGoMailDomain = domain.com;
SOGoSuperUsernames = (
postmas...@domain.com
);
SOGoUserSources = (
{
type = sql;
id = sql-auth;
isAddressBook = NO;
.
},
{
type = sql;
id = sql_addressbook;
isAddressBook = YES;
.
}
);
};
domain1.com = {
SOGoMailDomain = domain1.com;
SOGoSuperUsernames = (
postmas...@domain1.com
);
SOGoUserSources = (
{
type = ldap;
id = ldap_auth;
isAddressBook = NO;
.
},
{
type = ldap;
id = ldap_addressbook;
isAddressBook = YES;
.
}
);
};
};


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


Re: [SOGo] how exclude a mail address from global address list

2015-07-15 Thread Yavuz Maşlak


On 15/07/15 16:25, Francis Lachapelle flachape...@inverse.ca wrote:

Hello Yavuz

 On Jul 15, 2015, at 3:23 AM, Yavuz Maşlak yavuz.mas...@ihlas.com.tr
wrote:
 
 
 i have 3 domains  ( for example  a.com  b.comc.com ).
 
 Users of A.com  and b.com  can see eachother but c.com
 C.com ¹s users can only see eachother but other domains.
 
 How can i do that ?
 
 Could you give me an example?

This should do it:

SOGoDomainsVisibility = ( (a.com, b.com), (c.com) );


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

I tried now. Unfortunately, it does not work.
Whan can be the problem ?

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

Re: [SOGo] how exclude a mail address from global address list

2015-07-11 Thread Yavuz Maşlak


On 09/07/15 13:45, Christian M. Jensen christ...@cmjscripter.net wrote:

On 09-07-2015 08:26, Yavuz Maşlak wrote:

 On 09/07/15 01:15, Christian M. Jensen christ...@cmjscripter.net
wrote:

 hi

 replace some of the invalid chars..
 like ³ replace with 

 okay here it is in plain text that will work with SOGo (sogo can read
it.)
 NOTE
 i replaced  ldap://127.0.0.1:389; with 127.0.0.1 not hat it makes a
 difference it's just shorter to write
 and ³ with 

 -.-
  SOGoUserSources = (
  {
  CNFieldName = cn;
  IDFieldName = mail;
  IMAPLoginFieldName = mail;
  SearchFieldNames = (
  cn,
  sn,
  displayName,
  telephoneNumber,
  mail,
  shadowAddress
  );
  UIDFieldName = mail;
  baseDN = o=domains,dc=domain,dc=com;
  bindDN = cn=vmailadmin,dc=domain,dc=com;
  bindFields = (
  mail
  );
  bindPassword = PASSWD;
  canAuthenticate = YES;
  displayName = LDAP Auth;
  filter = objectClass=mailUser AND accountStatus=active;
  hostname = 127.0.0.1;
  id = ldap_auth;
  isAddressBook = NO;
  scope = SUB;
  type = ldap;
  userPasswordAlgorithm = ssha;
  },
  {
  CNFieldName = cn;
  IDFieldName = mail;
  IMAPLoginFieldName = mail;
  SearchFieldNames = (
  cn,
  sn,
  displayName,
  telephoneNumber,
  mail,
  shadowAddress
  );
  UIDFieldName = mail;
  baseDN = o=domains,dc=domain,dc=com;
  bindDN = cn=vmailadmin,dc=domain,dc=com;
  bindFields = (
  mail
  );
  bindPassword = PASSWD;
  canAuthenticate = NO;
  displayName = Global Address Book;
  filter = objectClass=mailUser AND accountStatus=active
AND
 enabledService=mail AND mail  fi...@domain.com AND mail 
 sec...@domain.com;
  hostname = 127.0.0.1;
  id = ldap_addressbook;
  isAddressBook = YES;
  scope = SUB;
  type = ldap;
  userPasswordAlgorithm = ssha;
  }
  );

 -- 
 users@sogo.nu
 https://inverse.ca/sogo/lists
 Thanks a lot
 It works
 But i get an error in sogo.log  .   Is it important ?

 Jul 09 09:23:39 sogod [8344]: [ERROR]
0x0x7ff9c9babbf8[NGBundleManager]
 could not create bundle for path:
 
'/usr/share/GNUstep/Libraries/gnustep-base/Versions/1.24/Resources/SSL.bu
nd
 le'
 Jul 09 09:23:39 sogod [8344]: [WARN] 0x0x7ff9c68542c0[WOxElemBuilder]
 could not locate builders: WOxExtElemBuilder,WOxExtElemBuilder

hi

*could not create bundle for path:* that's safe to ignore see
http://www.sogo.nu/bugs/view.php?id=287

*could not locate builders*, i have no clue?

Regards
Christian Jensen



Ok , well  i have 3 domains  ( for example  a.com  b.comc.com ).
Users of A.com  and b.com  can see eachother but c.com
C.com ’s users can only see eachother but other domains.

How can i do that ?

 

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

Re: [SOGo] how exclude a mail address from global address list

2015-07-09 Thread Christian M. Jensen

On 09-07-2015 08:26, Yavuz Maşlak wrote:


On 09/07/15 01:15, Christian M. Jensen christ...@cmjscripter.net wrote:


hi

replace some of the invalid chars..
like ³ replace with 

okay here it is in plain text that will work with SOGo (sogo can read it.)
NOTE
i replaced  ldap://127.0.0.1:389; with 127.0.0.1 not hat it makes a
difference it's just shorter to write
and ³ with 

-.-
 SOGoUserSources = (
 {
 CNFieldName = cn;
 IDFieldName = mail;
 IMAPLoginFieldName = mail;
 SearchFieldNames = (
 cn,
 sn,
 displayName,
 telephoneNumber,
 mail,
 shadowAddress
 );
 UIDFieldName = mail;
 baseDN = o=domains,dc=domain,dc=com;
 bindDN = cn=vmailadmin,dc=domain,dc=com;
 bindFields = (
 mail
 );
 bindPassword = PASSWD;
 canAuthenticate = YES;
 displayName = LDAP Auth;
 filter = objectClass=mailUser AND accountStatus=active;
 hostname = 127.0.0.1;
 id = ldap_auth;
 isAddressBook = NO;
 scope = SUB;
 type = ldap;
 userPasswordAlgorithm = ssha;
 },
 {
 CNFieldName = cn;
 IDFieldName = mail;
 IMAPLoginFieldName = mail;
 SearchFieldNames = (
 cn,
 sn,
 displayName,
 telephoneNumber,
 mail,
 shadowAddress
 );
 UIDFieldName = mail;
 baseDN = o=domains,dc=domain,dc=com;
 bindDN = cn=vmailadmin,dc=domain,dc=com;
 bindFields = (
 mail
 );
 bindPassword = PASSWD;
 canAuthenticate = NO;
 displayName = Global Address Book;
 filter = objectClass=mailUser AND accountStatus=active AND
enabledService=mail AND mail  fi...@domain.com AND mail 
sec...@domain.com;
 hostname = 127.0.0.1;
 id = ldap_addressbook;
 isAddressBook = YES;
 scope = SUB;
 type = ldap;
 userPasswordAlgorithm = ssha;
 }
 );

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

Thanks a lot
It works
But i get an error in sogo.log  .   Is it important ?

Jul 09 09:23:39 sogod [8344]: [ERROR] 0x0x7ff9c9babbf8[NGBundleManager]
could not create bundle for path:
'/usr/share/GNUstep/Libraries/gnustep-base/Versions/1.24/Resources/SSL.bund
le'
Jul 09 09:23:39 sogod [8344]: [WARN] 0x0x7ff9c68542c0[WOxElemBuilder]
could not locate builders: WOxExtElemBuilder,WOxExtElemBuilder


hi

*could not create bundle for path:* that's safe to ignore see 
http://www.sogo.nu/bugs/view.php?id=287


*could not locate builders*, i have no clue?

Regards
Christian Jensen




smime.p7s
Description: S/MIME Cryptographic Signature


Re: [SOGo] how exclude a mail address from global address list

2015-07-09 Thread Yavuz Maşlak


On 09/07/15 01:15, Christian M. Jensen christ...@cmjscripter.net wrote:

hi

replace some of the invalid chars..
like ³ replace with 

okay here it is in plain text that will work with SOGo (sogo can read it.)
NOTE
i replaced  ldap://127.0.0.1:389; with 127.0.0.1 not hat it makes a
difference it's just shorter to write
and ³ with 

-.-
 SOGoUserSources = (
 {
 CNFieldName = cn;
 IDFieldName = mail;
 IMAPLoginFieldName = mail;
 SearchFieldNames = (
 cn,
 sn,
 displayName,
 telephoneNumber,
 mail,
 shadowAddress
 );
 UIDFieldName = mail;
 baseDN = o=domains,dc=domain,dc=com;
 bindDN = cn=vmailadmin,dc=domain,dc=com;
 bindFields = (
 mail
 );
 bindPassword = PASSWD;
 canAuthenticate = YES;
 displayName = LDAP Auth;
 filter = objectClass=mailUser AND accountStatus=active;
 hostname = 127.0.0.1;
 id = ldap_auth;
 isAddressBook = NO;
 scope = SUB;
 type = ldap;
 userPasswordAlgorithm = ssha;
 },
 {
 CNFieldName = cn;
 IDFieldName = mail;
 IMAPLoginFieldName = mail;
 SearchFieldNames = (
 cn,
 sn,
 displayName,
 telephoneNumber,
 mail,
 shadowAddress
 );
 UIDFieldName = mail;
 baseDN = o=domains,dc=domain,dc=com;
 bindDN = cn=vmailadmin,dc=domain,dc=com;
 bindFields = (
 mail
 );
 bindPassword = PASSWD;
 canAuthenticate = NO;
 displayName = Global Address Book;
 filter = objectClass=mailUser AND accountStatus=active AND
enabledService=mail AND mail  fi...@domain.com AND mail 
sec...@domain.com;
 hostname = 127.0.0.1;
 id = ldap_addressbook;
 isAddressBook = YES;
 scope = SUB;
 type = ldap;
 userPasswordAlgorithm = ssha;
 }
 );

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

Thanks a lot
It works
But i get an error in sogo.log  .   Is it important ?

Jul 09 09:23:39 sogod [8344]: [ERROR] 0x0x7ff9c9babbf8[NGBundleManager]
could not create bundle for path:
'/usr/share/GNUstep/Libraries/gnustep-base/Versions/1.24/Resources/SSL.bund
le'
Jul 09 09:23:39 sogod [8344]: [WARN] 0x0x7ff9c68542c0[WOxElemBuilder]
could not locate builders: WOxExtElemBuilder,WOxExtElemBuilder




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

Re: [SOGo] how exclude a mail address from global address list

2015-07-08 Thread Hugo
you have to define two LDAP connections, one for the login auth, which 
should be as it is now (filter unchanged), with:


 canAuthenticate = YES;
 isAddressBook = NO;

and another one for the address book only, where you set:

 canAuthenticate = NO;
 isAddressBook = YES;


---8---
follow the documentation:
The filter to use for LDAP queries, it should be
defined as an EOQualifier. The following opera-
tors are supported:
 – inequality operator
= – equality operator
Multiple qualifiers can be joined by using OR and AND,
they can also be grouped together by
using parenthesis. Attribute values should be
quoted to avoid unexpected behaviour.
For example:
filter = (objectClass='mailUser' OR objectClass='mailGroup') AND 
accountStatus='active' AND uid  'alice';

---8---

that means, the filter for the address book should be something like this:
filter = objectClass=mailUser AND accountStatus=active AND 
enabledService=mail AND uid  'alice' AND uid  'bob';


you have to substitute 'alice' and 'bob' with the UID of your LDAP users 
to be hidden.


regards,
hugo.-

On 08.07.2015 08:20, Yavuz Maşlak wrote:



On 08/07/15 04:33, Hugo m...@hugo.ro wrote:


hi
maybe there's another approach, but I think you could use a filter that
excludes those users from the search for the address book ldap
connection. something like:
((objectClass=person)(mail=*)(!(mail=t...@one.not))(!(t...@neith.er)))
of course, transformed into the sogo config style, see the docs for that
http://www.sogo.nu/files/docs/SOGo%20Installation%20Guide.pdf


On 07.07.2015 22:52, Yavuz Maşlak wrote:

Hello

I installed sogo.  I use ldap for user authentication.

I want some accounts to be invisible from global address book.

How can i do that ?

Could you give me an example ?

Thanks  a lot

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



My sogo filter conf like below
filter = objectClass=mailUser AND accountStatus=active AND
enabledService=mail”;

If i add addition the expression you gave, filter = objectClass=mailUser
AND
((objectClass=person)(mail=*)(!(mail=t...@one.not))(!(t...@neith.er)))
AND accountStatus=active AND enabledService=mail;
I can not login as the SOGO my user begins not to work. So i had to remove
the new expression.
What can be the problem



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


Re: [SOGo] how exclude a mail address from global address list

2015-07-08 Thread Yavuz Maşlak


On 08/07/15 04:33, Hugo m...@hugo.ro wrote:

hi
maybe there's another approach, but I think you could use a filter that
excludes those users from the search for the address book ldap
connection. something like:
((objectClass=person)(mail=*)(!(mail=t...@one.not))(!(t...@neith.er)))
of course, transformed into the sogo config style, see the docs for that
http://www.sogo.nu/files/docs/SOGo%20Installation%20Guide.pdf


On 07.07.2015 22:52, Yavuz Maşlak wrote:
 Hello

 I installed sogo.  I use ldap for user authentication.

 I want some accounts to be invisible from global address book.

 How can i do that ?

 Could you give me an example ?

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


My sogo filter conf like below
filter = objectClass=mailUser AND accountStatus=active AND
enabledService=mail”;

If i add addition the expression you gave, filter = objectClass=mailUser
AND  
((objectClass=person)(mail=*)(!(mail=t...@one.not))(!(t...@neith.er)))
AND accountStatus=active AND enabledService=mail;
I can not login as the SOGO my user begins not to work. So i had to remove
the new expression.
What can be the problem


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

Re: [SOGo] how exclude a mail address from global address list

2015-07-08 Thread Yavuz Maşlak


On 08/07/15 14:48, Hugo m...@hugo.ro wrote:

you have to define two LDAP connections, one for the login auth, which
should be as it is now (filter unchanged), with:

  canAuthenticate = YES;
  isAddressBook = NO;

and another one for the address book only, where you set:

  canAuthenticate = NO;
  isAddressBook = YES;


---8---
follow the documentation:
The filter to use for LDAP queries, it should be
defined as an EOQualifier. The following opera-
tors are supported:
 – inequality operator
= – equality operator
Multiple qualifiers can be joined by using OR and AND,
they can also be grouped together by
using parenthesis. Attribute values should be
quoted to avoid unexpected behaviour.
For example:
filter = (objectClass='mailUser' OR objectClass='mailGroup') AND
accountStatus='active' AND uid  'alice';
---8---

that means, the filter for the address book should be something like this:
filter = objectClass=mailUser AND accountStatus=active AND
enabledService=mail AND uid  'alice' AND uid  'bob';

you have to substitute 'alice' and 'bob' with the UID of your LDAP users
to be hidden.

regards,
hugo.-

On 08.07.2015 08:20, Yavuz Maşlak wrote:


 On 08/07/15 04:33, Hugo m...@hugo.ro wrote:

 hi
 maybe there's another approach, but I think you could use a filter that
 excludes those users from the search for the address book ldap
 connection. something like:
 ((objectClass=person)(mail=*)(!(mail=t...@one.not))(!(t...@neith.er)))
 of course, transformed into the sogo config style, see the docs for
that
 http://www.sogo.nu/files/docs/SOGo%20Installation%20Guide.pdf


 On 07.07.2015 22:52, Yavuz Maşlak wrote:
 Hello

 I installed sogo.  I use ldap for user authentication.

 I want some accounts to be invisible from global address book.

 How can i do that ?

 Could you give me an example ?

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


 My sogo filter conf like below
 filter = objectClass=mailUser AND accountStatus=active AND
 enabledService=mail”;

 If i add addition the expression you gave, filter =
objectClass=mailUser
 AND
 ((objectClass=person)(mail=*)(!(mail=t...@one.not))(!(t...@neith.er)))
 AND accountStatus=active AND enabledService=mail;
 I can not login as the SOGO my user begins not to work. So i had to
remove
 the new expression.
 What can be the problem


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

Ok I added second Sogo source block something like below;
SOGoUserSources = (
{
type = ldap;
hostname = ldap://127.0.0.1:389;;
baseDN = o=domains,dc=domain,dc=com;
bindDN = cn=vmailadmin,dc=domain,dc=com;
bindPassword = “PASSWD;
filter = objectClass=mailUser AND accountStatus=active AND
enabledService=mail AND uid  ‘fi...@domain.com' AND uid 
 ’sec...@domain.com';
scope = SUB;
userPasswordAlgorithm = ssha;
IDFieldName = mail;
bindFields = (mail);
CNFieldName = cn;
UIDFieldName = mail;
IMAPLoginFieldName = mail;
SearchFieldNames = (cn, sn, displayName, telephoneNumber,
mail, shadowAddress);
canAuthenticate = YES;
displayName = Global Address Book;
id = ldap_auth;
isAddressBook = NO;
}
);
SOGoUserSources = (
{
type = ldap;
hostname = ldap://127.0.0.1:389;;
baseDN = o=domains,dc=domain,dc=com;
bindDN = cn=vmailadmin,dc=domain,dc=com;
bindPassword = “PASSWD;
filter = objectClass=mailUser AND accountStatus=active AND
enabledService=mail AND uid  ‘fi...@domain.com' AND uid 
 ’sec...@domain.com';
scope = SUB;
userPasswordAlgorithm = ssha;
IDFieldName = mail;
bindFields = (mail);
CNFieldName = cn;
UIDFieldName = mail;
IMAPLoginFieldName = mail;
SearchFieldNames = (cn, sn, displayName, telephoneNumber,
mail, shadowAddress);
canAuthenticate = NO;
displayName = Global Address Book;
id = ldap_auth;
isAddressBook = YES;
}
);
###

But after sogo restarted,  i can not login at sogo with my self account.

How can i fix it? I put down the same filter settings. How should it be?

Thanks 





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

Re: [SOGo] how exclude a mail address from global address list

2015-07-08 Thread Yavuz Maşlak


On 08/07/15 18:06, Hugo m...@hugo.ro wrote:

the one you authenticate with should be left as it was before, and you
should give them 2 different ID's.
furthermore, uid is not an email address. if you like to sort the users
out by email then say mail  'fi...@domain.com' instead of uid 
'fi...@domain.com'. even if you have set UIDFieldName = mail, that is
only an ldap attribute mapping. the ldap filter matches the real ldap
attributes, so you have to use the attribute 'mail' here.
you perhaps could also drop some of the defs that are not used by auth,
but I think they will be ignored anyway.

something like:

   SOGoUserSources = (
   {
   type = ldap;
   hostname = ldap://127.0.0.1:389;;
   baseDN = o=domains,dc=domain,dc=com;
   bindDN = cn=vmailadmin,dc=domain,dc=com;
   bindPassword = “PASSWD;
   filter = objectClass=mailUser AND accountStatus=active;
   scope = SUB;
   userPasswordAlgorithm = ssha;
   IDFieldName = mail;
   bindFields = (mail);
   CNFieldName = cn;
   UIDFieldName = mail;
   IMAPLoginFieldName = mail;
   SearchFieldNames = (cn, sn, displayName, telephoneNumber,
mail, shadowAddress);
   canAuthenticate = YES;
   displayName = LDAP Auth;
   id = ldap_auth;
   isAddressBook = NO;
   }
   );
   SOGoUserSources = (
   {
   type = ldap;
   hostname = ldap://127.0.0.1:389;;
   baseDN = o=domains,dc=domain,dc=com;
   bindDN = cn=vmailadmin,dc=domain,dc=com;
   bindPassword = “PASSWD;
   filter = objectClass=mailUser AND accountStatus=active
AND enabledService=mail AND mail  ‘fi...@domain.com' AND mail 
’sec...@domain.com';
   scope = SUB;
   userPasswordAlgorithm = ssha;
   IDFieldName = mail;
   bindFields = (mail);
   CNFieldName = cn;
   UIDFieldName = mail;
   IMAPLoginFieldName = mail;
   SearchFieldNames = (cn, sn, displayName, telephoneNumber,
mail, shadowAddress);
   canAuthenticate = NO;
   displayName = Global Address Book;
   id = ldap_addressbook;
   isAddressBook = YES;
   }
  );
  ###

perhaps someone else who already tried this can also contribute? I last
used sogo with LDAP 3-4 years ago :)

On 08.07.2015 15:32, Yavuz Maşlak wrote:


 On 08/07/15 14:48, Hugo m...@hugo.ro wrote:

 you have to define two LDAP connections, one for the login auth, which
 should be as it is now (filter unchanged), with:

   canAuthenticate = YES;
   isAddressBook = NO;

 and another one for the address book only, where you set:

   canAuthenticate = NO;
   isAddressBook = YES;


 ---8---
 follow the documentation:
 The filter to use for LDAP queries, it should be
 defined as an EOQualifier. The following opera-
 tors are supported:
  – inequality operator
 = – equality operator
 Multiple qualifiers can be joined by using OR and AND,
 they can also be grouped together by
 using parenthesis. Attribute values should be
 quoted to avoid unexpected behaviour.
 For example:
 filter = (objectClass='mailUser' OR objectClass='mailGroup') AND
 accountStatus='active' AND uid  'alice';
 ---8---

 that means, the filter for the address book should be something like
this:
 filter = objectClass=mailUser AND accountStatus=active AND
 enabledService=mail AND uid  'alice' AND uid  'bob';

 you have to substitute 'alice' and 'bob' with the UID of your LDAP
users
 to be hidden.

 regards,
 hugo.-

 On 08.07.2015 08:20, Yavuz Maşlak wrote:


 On 08/07/15 04:33, Hugo m...@hugo.ro wrote:

 hi
 maybe there's another approach, but I think you could use a filter
that
 excludes those users from the search for the address book ldap
 connection. something like:
 
((objectClass=person)(mail=*)(!(mail=t...@one.not))(!(t...@neith.er))
)
 of course, transformed into the sogo config style, see the docs for
 that
 http://www.sogo.nu/files/docs/SOGo%20Installation%20Guide.pdf


 On 07.07.2015 22:52, Yavuz Maşlak wrote:
 Hello

 I installed sogo.  I use ldap for user authentication.

 I want some accounts to be invisible from global address book.

 How can i do that ?

 Could you give me an example ?

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


 My sogo filter conf like below
 filter = objectClass=mailUser AND accountStatus=active AND
 enabledService=mail”;

 If i add addition the expression you gave, filter =
 objectClass=mailUser
 AND
 
((objectClass=person)(mail=*)(!(mail=t...@one.not))(!(t...@neith.er)))
 AND accountStatus=active AND enabledService=mail;
 I can not login as the SOGO my user begins not to work. So i had to
 remove
 the new expression.
 What can be the problem


 --
 users@sogo.nu
 

Re: [SOGo] how exclude a mail address from global address list

2015-07-08 Thread Yavuz Maşlak
I updated as you put down

I can not start sogo

I get an error;
 * Restarting SOGo sogo
2015-07-09 00:21:28.689 sogod[61150] File NSDictionary.m: 635. In
-[NSDictionary initWithContentsOfFile:] Contents of file
'/etc/sogo/sogo.conf' does not contain a dictionary
0x0x7f8ae5f9f318[SOGoStartupLogger] Cannot read configuration from
'/etc/sogo/sogo.conf'. Aborting



On 08/07/15 22:52, Christian M. Jensen christ...@cmjscripter.net wrote:

Hi

I'm no expert but i think 'SOGoUserSources' can only be set once, since
it's an array you just set it like the following

   SOGoUserSources = (
   {
   type = ldap;
   hostname = ldap://127.0.0.1:389;;
   baseDN = o=domains,dc=domain,dc=com;
   bindDN = cn=vmailadmin,dc=domain,dc=com;
   bindPassword = “PASSWD;
   filter = objectClass=mailUser AND accountStatus=active;
   scope = SUB;
   userPasswordAlgorithm = ssha;
   IDFieldName = mail;
   bindFields = (mail);
   CNFieldName = cn;
   UIDFieldName = mail;
   IMAPLoginFieldName = mail;
   SearchFieldNames = (cn, sn, displayName, telephoneNumber,
mail, shadowAddress);
   canAuthenticate = YES;
   displayName = LDAP Auth;
   id = ldap_auth;
   isAddressBook = NO;
   },
   {
   type = ldap;
   hostname = ldap://127.0.0.1:389;;
   baseDN = o=domains,dc=domain,dc=com;
   bindDN = cn=vmailadmin,dc=domain,dc=com;
   bindPassword = “PASSWD;
   filter = objectClass=mailUser AND accountStatus=active
AND enabledService=mail AND mail  ‘fi...@domain.com' AND mail 
’sec...@domain.com';
   scope = SUB;
   userPasswordAlgorithm = ssha;
   IDFieldName = mail;
   bindFields = (mail);
   CNFieldName = cn;
   UIDFieldName = mail;
   IMAPLoginFieldName = mail;
   SearchFieldNames = (cn, sn, displayName, telephoneNumber,
mail, shadowAddress);
   canAuthenticate = NO;
   displayName = Global Address Book;
   id = ldap_addressbook;
   isAddressBook = YES;
   }
  );


Regards
Christian Jensen

On 08-07-2015 17:06, Hugo wrote:
 the one you authenticate with should be left as it was before, and you
 should give them 2 different ID's.
 furthermore, uid is not an email address. if you like to sort the
 users out by email then say mail  'fi...@domain.com' instead of uid
  'fi...@domain.com'. even if you have set UIDFieldName = mail, that
 is only an ldap attribute mapping. the ldap filter matches the real
 ldap attributes, so you have to use the attribute 'mail' here.
 you perhaps could also drop some of the defs that are not used by
 auth, but I think they will be ignored anyway.

 something like:

   SOGoUserSources = (
   {
   type = ldap;
   hostname = ldap://127.0.0.1:389;;
   baseDN = o=domains,dc=domain,dc=com;
   bindDN = cn=vmailadmin,dc=domain,dc=com;
   bindPassword = “PASSWD;
   filter = objectClass=mailUser AND accountStatus=active;
   scope = SUB;
   userPasswordAlgorithm = ssha;
   IDFieldName = mail;
   bindFields = (mail);
   CNFieldName = cn;
   UIDFieldName = mail;
   IMAPLoginFieldName = mail;
   SearchFieldNames = (cn, sn, displayName,
 telephoneNumber, mail, shadowAddress);
   canAuthenticate = YES;
   displayName = LDAP Auth;
   id = ldap_auth;
   isAddressBook = NO;
   }
   );
   SOGoUserSources = (
   {
   type = ldap;
   hostname = ldap://127.0.0.1:389;;
   baseDN = o=domains,dc=domain,dc=com;
   bindDN = cn=vmailadmin,dc=domain,dc=com;
   bindPassword = “PASSWD;
   filter = objectClass=mailUser AND accountStatus=active
 AND enabledService=mail AND mail  ‘fi...@domain.com' AND mail 
 ’sec...@domain.com';
   scope = SUB;
   userPasswordAlgorithm = ssha;
   IDFieldName = mail;
   bindFields = (mail);
   CNFieldName = cn;
   UIDFieldName = mail;
   IMAPLoginFieldName = mail;
   SearchFieldNames = (cn, sn, displayName,
 telephoneNumber, mail, shadowAddress);
   canAuthenticate = NO;
   displayName = Global Address Book;
   id = ldap_addressbook;
   isAddressBook = YES;
   }
  );
  ###

 perhaps someone else who already tried this can also contribute? I
 last used sogo with LDAP 3-4 years ago :)

 On 08.07.2015 15:32, Yavuz Maşlak wrote:


 On 08/07/15 14:48, Hugo 

Re: [SOGo] how exclude a mail address from global address list

2015-07-08 Thread Christian M. Jensen

Hi

I'm no expert but i think 'SOGoUserSources' can only be set once, since 
it's an array you just set it like the following


  SOGoUserSources = (
  {
  type = ldap;
  hostname = ldap://127.0.0.1:389;;
  baseDN = o=domains,dc=domain,dc=com;
  bindDN = cn=vmailadmin,dc=domain,dc=com;
  bindPassword = “PASSWD;
  filter = objectClass=mailUser AND accountStatus=active;
  scope = SUB;
  userPasswordAlgorithm = ssha;
  IDFieldName = mail;
  bindFields = (mail);
  CNFieldName = cn;
  UIDFieldName = mail;
  IMAPLoginFieldName = mail;
  SearchFieldNames = (cn, sn, displayName, telephoneNumber, 
mail, shadowAddress);

  canAuthenticate = YES;
  displayName = LDAP Auth;
  id = ldap_auth;
  isAddressBook = NO;
  },
  {
  type = ldap;
  hostname = ldap://127.0.0.1:389;;
  baseDN = o=domains,dc=domain,dc=com;
  bindDN = cn=vmailadmin,dc=domain,dc=com;
  bindPassword = “PASSWD;
  filter = objectClass=mailUser AND accountStatus=active 
AND enabledService=mail AND mail  ‘fi...@domain.com' AND mail  
’sec...@domain.com';

  scope = SUB;
  userPasswordAlgorithm = ssha;
  IDFieldName = mail;
  bindFields = (mail);
  CNFieldName = cn;
  UIDFieldName = mail;
  IMAPLoginFieldName = mail;
  SearchFieldNames = (cn, sn, displayName, telephoneNumber, 
mail, shadowAddress);

  canAuthenticate = NO;
  displayName = Global Address Book;
  id = ldap_addressbook;
  isAddressBook = YES;
  }
 );


Regards
Christian Jensen

On 08-07-2015 17:06, Hugo wrote:
the one you authenticate with should be left as it was before, and you 
should give them 2 different ID's.
furthermore, uid is not an email address. if you like to sort the 
users out by email then say mail  'fi...@domain.com' instead of uid 
 'fi...@domain.com'. even if you have set UIDFieldName = mail, that 
is only an ldap attribute mapping. the ldap filter matches the real 
ldap attributes, so you have to use the attribute 'mail' here.
you perhaps could also drop some of the defs that are not used by 
auth, but I think they will be ignored anyway.


something like:

  SOGoUserSources = (
  {
  type = ldap;
  hostname = ldap://127.0.0.1:389;;
  baseDN = o=domains,dc=domain,dc=com;
  bindDN = cn=vmailadmin,dc=domain,dc=com;
  bindPassword = “PASSWD;
  filter = objectClass=mailUser AND accountStatus=active;
  scope = SUB;
  userPasswordAlgorithm = ssha;
  IDFieldName = mail;
  bindFields = (mail);
  CNFieldName = cn;
  UIDFieldName = mail;
  IMAPLoginFieldName = mail;
  SearchFieldNames = (cn, sn, displayName, 
telephoneNumber, mail, shadowAddress);

  canAuthenticate = YES;
  displayName = LDAP Auth;
  id = ldap_auth;
  isAddressBook = NO;
  }
  );
  SOGoUserSources = (
  {
  type = ldap;
  hostname = ldap://127.0.0.1:389;;
  baseDN = o=domains,dc=domain,dc=com;
  bindDN = cn=vmailadmin,dc=domain,dc=com;
  bindPassword = “PASSWD;
  filter = objectClass=mailUser AND accountStatus=active 
AND enabledService=mail AND mail  ‘fi...@domain.com' AND mail  
’sec...@domain.com';

  scope = SUB;
  userPasswordAlgorithm = ssha;
  IDFieldName = mail;
  bindFields = (mail);
  CNFieldName = cn;
  UIDFieldName = mail;
  IMAPLoginFieldName = mail;
  SearchFieldNames = (cn, sn, displayName, 
telephoneNumber, mail, shadowAddress);

  canAuthenticate = NO;
  displayName = Global Address Book;
  id = ldap_addressbook;
  isAddressBook = YES;
  }
 );
 ###

perhaps someone else who already tried this can also contribute? I 
last used sogo with LDAP 3-4 years ago :)


On 08.07.2015 15:32, Yavuz Maşlak wrote:



On 08/07/15 14:48, Hugo m...@hugo.ro wrote:


you have to define two LDAP connections, one for the login auth, which
should be as it is now (filter unchanged), with:

  canAuthenticate = YES;
  isAddressBook = NO;

and another one for the address book only, where you set:

  canAuthenticate = NO;
  isAddressBook = YES;


---8---
follow the documentation:
The filter to use for LDAP queries, it should be
defined as an EOQualifier. The following opera-
tors are supported:
 – inequality operator
= – equality operator
Multiple qualifiers can be 

Re: [SOGo] how exclude a mail address from global address list

2015-07-08 Thread Christian M. Jensen

hi

replace some of the invalid chars..
like “ replace with 

okay here it is in plain text that will work with SOGo (sogo can read it.)
NOTE
i replaced  ldap://127.0.0.1:389; with 127.0.0.1 not hat it makes a 
difference it's just shorter to write

and “ with 

-.-
SOGoUserSources = (
{
CNFieldName = cn;
IDFieldName = mail;
IMAPLoginFieldName = mail;
SearchFieldNames = (
cn,
sn,
displayName,
telephoneNumber,
mail,
shadowAddress
);
UIDFieldName = mail;
baseDN = o=domains,dc=domain,dc=com;
bindDN = cn=vmailadmin,dc=domain,dc=com;
bindFields = (
mail
);
bindPassword = PASSWD;
canAuthenticate = YES;
displayName = LDAP Auth;
filter = objectClass=mailUser AND accountStatus=active;
hostname = 127.0.0.1;
id = ldap_auth;
isAddressBook = NO;
scope = SUB;
type = ldap;
userPasswordAlgorithm = ssha;
},
{
CNFieldName = cn;
IDFieldName = mail;
IMAPLoginFieldName = mail;
SearchFieldNames = (
cn,
sn,
displayName,
telephoneNumber,
mail,
shadowAddress
);
UIDFieldName = mail;
baseDN = o=domains,dc=domain,dc=com;
bindDN = cn=vmailadmin,dc=domain,dc=com;
bindFields = (
mail
);
bindPassword = PASSWD;
canAuthenticate = NO;
displayName = Global Address Book;
filter = objectClass=mailUser AND accountStatus=active AND 
enabledService=mail AND mail  fi...@domain.com AND mail  
sec...@domain.com;

hostname = 127.0.0.1;
id = ldap_addressbook;
isAddressBook = YES;
scope = SUB;
type = ldap;
userPasswordAlgorithm = ssha;
}
);

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

Re: [SOGo] how exclude a mail address from global address list

2015-07-08 Thread Hugo
the one you authenticate with should be left as it was before, and you 
should give them 2 different ID's.
furthermore, uid is not an email address. if you like to sort the users 
out by email then say mail  'fi...@domain.com' instead of uid  
'fi...@domain.com'. even if you have set UIDFieldName = mail, that is 
only an ldap attribute mapping. the ldap filter matches the real ldap 
attributes, so you have to use the attribute 'mail' here.
you perhaps could also drop some of the defs that are not used by auth, 
but I think they will be ignored anyway.


something like:

  SOGoUserSources = (
  {
  type = ldap;
  hostname = ldap://127.0.0.1:389;;
  baseDN = o=domains,dc=domain,dc=com;
  bindDN = cn=vmailadmin,dc=domain,dc=com;
  bindPassword = “PASSWD;
  filter = objectClass=mailUser AND accountStatus=active;
  scope = SUB;
  userPasswordAlgorithm = ssha;
  IDFieldName = mail;
  bindFields = (mail);
  CNFieldName = cn;
  UIDFieldName = mail;
  IMAPLoginFieldName = mail;
  SearchFieldNames = (cn, sn, displayName, telephoneNumber, 
mail, shadowAddress);

  canAuthenticate = YES;
  displayName = LDAP Auth;
  id = ldap_auth;
  isAddressBook = NO;
  }
  );
  SOGoUserSources = (
  {
  type = ldap;
  hostname = ldap://127.0.0.1:389;;
  baseDN = o=domains,dc=domain,dc=com;
  bindDN = cn=vmailadmin,dc=domain,dc=com;
  bindPassword = “PASSWD;
  filter = objectClass=mailUser AND accountStatus=active 
AND enabledService=mail AND mail  ‘fi...@domain.com' AND mail  
’sec...@domain.com';

  scope = SUB;
  userPasswordAlgorithm = ssha;
  IDFieldName = mail;
  bindFields = (mail);
  CNFieldName = cn;
  UIDFieldName = mail;
  IMAPLoginFieldName = mail;
  SearchFieldNames = (cn, sn, displayName, telephoneNumber, 
mail, shadowAddress);

  canAuthenticate = NO;
  displayName = Global Address Book;
  id = ldap_addressbook;
  isAddressBook = YES;
  }
 );
 ###

perhaps someone else who already tried this can also contribute? I last 
used sogo with LDAP 3-4 years ago :)


On 08.07.2015 15:32, Yavuz Maşlak wrote:



On 08/07/15 14:48, Hugo m...@hugo.ro wrote:


you have to define two LDAP connections, one for the login auth, which
should be as it is now (filter unchanged), with:

  canAuthenticate = YES;
  isAddressBook = NO;

and another one for the address book only, where you set:

  canAuthenticate = NO;
  isAddressBook = YES;


---8---
follow the documentation:
The filter to use for LDAP queries, it should be
defined as an EOQualifier. The following opera-
tors are supported:
 – inequality operator
= – equality operator
Multiple qualifiers can be joined by using OR and AND,
they can also be grouped together by
using parenthesis. Attribute values should be
quoted to avoid unexpected behaviour.
For example:
filter = (objectClass='mailUser' OR objectClass='mailGroup') AND
accountStatus='active' AND uid  'alice';
---8---

that means, the filter for the address book should be something like this:
filter = objectClass=mailUser AND accountStatus=active AND
enabledService=mail AND uid  'alice' AND uid  'bob';

you have to substitute 'alice' and 'bob' with the UID of your LDAP users
to be hidden.

regards,
hugo.-

On 08.07.2015 08:20, Yavuz Maşlak wrote:



On 08/07/15 04:33, Hugo m...@hugo.ro wrote:


hi
maybe there's another approach, but I think you could use a filter that
excludes those users from the search for the address book ldap
connection. something like:
((objectClass=person)(mail=*)(!(mail=t...@one.not))(!(t...@neith.er)))
of course, transformed into the sogo config style, see the docs for
that
http://www.sogo.nu/files/docs/SOGo%20Installation%20Guide.pdf


On 07.07.2015 22:52, Yavuz Maşlak wrote:

Hello

I installed sogo.  I use ldap for user authentication.

I want some accounts to be invisible from global address book.

How can i do that ?

Could you give me an example ?

Thanks  a lot

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



My sogo filter conf like below
filter = objectClass=mailUser AND accountStatus=active AND
enabledService=mail”;

If i add addition the expression you gave, filter =
objectClass=mailUser
AND
((objectClass=person)(mail=*)(!(mail=t...@one.not))(!(t...@neith.er)))
AND accountStatus=active AND enabledService=mail;
I can not login as the SOGO my user begins not to work. So i had to
remove
the new expression.
What can be the problem



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


Ok I added second Sogo source block something like below;
 SOGoUserSources = (
 {
 type = ldap;
 

Re: [SOGo] how exclude a mail address from global address list

2015-07-07 Thread Hugo

hi
maybe there's another approach, but I think you could use a filter that 
excludes those users from the search for the address book ldap 
connection. something like:

((objectClass=person)(mail=*)(!(mail=t...@one.not))(!(t...@neith.er)))
of course, transformed into the sogo config style, see the docs for that
http://www.sogo.nu/files/docs/SOGo%20Installation%20Guide.pdf


On 07.07.2015 22:52, Yavuz Maşlak wrote:

Hello

I installed sogo.  I use ldap for user authentication.

I want some accounts to be invisible from global address book.

How can i do that ?

Could you give me an example ?

Thanks  a lot

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


[SOGo] how exclude a mail address from global address list

2015-07-07 Thread Yavuz Maşlak
Hello

I installed sogo.  I use ldap for user authentication.

I want some accounts to be invisible from global address book.

How can i do that ?

Could you give me an example ?

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