Commit a726c318 authored by putro's avatar putro

added function to search newsletters

parent ef7d8d83
Pipeline #3883 failed with stages
in 3 minutes and 20 seconds
......@@ -113,6 +113,7 @@ func newLDAPBackendWithConn(conn ldapConn, baseDN string) (*backend, error) {
// discovered the base resources, so we can use the list
// of email aliases as listOwners.
Please register or sign in to reply
resources: reg,
minUID: defaultMinUID,
......@@ -269,6 +270,11 @@ func newMailingListResourceFinder(baseDN string) userResourceFinder {
return &ldapUserResourceFinder{&mailingListResourceFinder{joinDN("ou=Lists", baseDN)}}
func newNewsletterResourceFinder(baseDN string) userResourceFinder {
return &ldapUserResourceFinder{&mailingListResourceFinder{joinDN("ou=Newsletters", baseDN)}}
// Find resources for a user using a generic LDAP query.
type ldapUserResourceFinder struct {
  • in Go bisogna sempre usare "go fmt" tra parentesi, per riformattare il codice dopo ogni modifica

  • ok commenti entrambi inutili perche' hai risolto dopo, pardon :)

Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment