server/sources/ldapfeed.py
branchstable
changeset 8589 ee9ecfccc3e8
parent 8430 5bee87a14bb1
child 8674 001c1592060a
equal deleted inserted replaced
8588:22af622e6e24 8589:ee9ecfccc3e8
    13 # FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
    13 # FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more
    14 # details.
    14 # details.
    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 
       
    20 unlike ldapuser source, this source is copy based and will import ldap content
       
    21 (beside passwords for authentication) into the system source.
       
    22 """
       
    23 
    19 
    24 from cubicweb.server.sources import datafeed
    20 from cubicweb.server.sources import datafeed
    25 from cubicweb.server import ldaputils
    21 from cubicweb.server import ldaputils
    26 
    22 
    27 
    23 
    28 class LDAPFeedSource(ldaputils.LDAPSourceMixIn,
    24 class LDAPFeedSource(ldaputils.LDAPSourceMixIn,
    29                      datafeed.DataFeedSource):
    25                      datafeed.DataFeedSource):
    30     """LDAP feed source"""
    26     """LDAP feed source: unlike ldapuser source, this source is copy based and
       
    27     will import ldap content (beside passwords for authentication) into the
       
    28     system source.
       
    29     """
    31     support_entities = {'CWUser': False}
    30     support_entities = {'CWUser': False}
    32     use_cwuri_as_url = False
    31     use_cwuri_as_url = False
    33 
    32 
    34     options = datafeed.DataFeedSource.options + ldaputils.LDAPSourceMixIn.options
    33     options = datafeed.DataFeedSource.options + ldaputils.LDAPSourceMixIn.options
    35 
    34