콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
5752 화면

We are wanting to get more details imported into OpenERP from LDAP. I have a test environment that now adds the photo, email address and phones numbers from LDAP on the first LDAP login.

Changes to addons/auth_ldap/users_ldap.py (def map_ldap_attributes ~line 163).

    values = { 'name': ldap_entry[1]['cn'][0],
               'email': ldap_entry[1]['mail'][0],
               'phone': ldap_entry[1]['telephoneNumber'][0],
               'mobile': ldap_entry[1]['mobile'][0],
               'image': ldap_entry[1]['jpegPhoto'][0].encode('base64'),
               'login': login,
               'company_id': conf['company']
               }

Before I get carried away creating a patch for this, there are a couple of other things worth exploring in more depth and I'm after people's feedback on what they'd find of value.

1/ Any other fields worth adding? Mainly asking this, because other people will have LDAP that may have more details than we do. At this point we haven't really considered adding to the fields that already exists for the current user/partner set up, but it is doable.

2/ If so, does there need to be some way of selecting/mapping those values you'd want to import? Different LDAP -> OpenERP Mappings?

3/ We want to be able to update information from LDAP (on login), eg phone number changes, or retroactively add those details to users existing before this patch. Should that be a general update all information from LDAP .. or selected fields only?

Thoughts?

Cheers, Ian

아바타
취소
관련 게시물 답글 화면 활동
1
6월 22
7819
0
1월 21
2395
0
11월 17
5132
0
3월 15
4077
0
3월 15
4301