equal
deleted
inserted
replaced
15 # |
15 # |
16 # You should have received a copy of the GNU Lesser General Public License along |
16 # You should have received a copy of the GNU Lesser General Public License along |
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
17 # with CubicWeb. If not, see <http://www.gnu.org/licenses/>. |
18 """cubicweb ldap feed source""" |
18 """cubicweb ldap feed source""" |
19 |
19 |
|
20 from cubicweb.cwconfig import merge_options |
20 from cubicweb.server.sources import datafeed |
21 from cubicweb.server.sources import datafeed |
21 from cubicweb.server import ldaputils |
22 from cubicweb.server import ldaputils |
22 |
23 |
23 |
24 |
24 class LDAPFeedSource(ldaputils.LDAPSourceMixIn, |
25 class LDAPFeedSource(ldaputils.LDAPSourceMixIn, |
28 system source. |
29 system source. |
29 """ |
30 """ |
30 support_entities = {'CWUser': False} |
31 support_entities = {'CWUser': False} |
31 use_cwuri_as_url = False |
32 use_cwuri_as_url = False |
32 |
33 |
33 options = datafeed.DataFeedSource.options + ldaputils.LDAPSourceMixIn.options |
34 options = merge_options(datafeed.DataFeedSource.options |
|
35 + ldaputils.LDAPSourceMixIn.options, |
|
36 optgroup='ldap-source') |
34 |
37 |