#6877 ipasam needs changes for Samba 4.7
Closed: fixed Opened by abbra.

With Samba 4.7 access to ldapsam internal structures will not be available for external applications. FreeIPA's ipasam module was using those for own needs. Now it needs to migrate to proper own private structure.

See https://git.samba.org/?p=samba.git;a=commitdiff;h=4fe2b24b34192606e3a45f64a3e5e5449873bf3c;hp=91e9ff99752c42581db67d4e1e85556ea5c07fbf and https://git.samba.org/?p=samba.git;a=commitdiff;h=91e9ff99752c42581db67d4e1e85556ea5c07fbf

Given that we anyway need to implement many missing functions like pdb_update_sam_account() callback with FreeIPA-specific logic, piggybacking on ldapsam structures is not needed anymore.


Metadata Update from @abbra:
- Issue assigned to abbra

@abbra approximately when Samba 4.7 will be ready? I.e. when we should be prepared?

Metadata Update from @pvoborni:
- Issue set to the milestone: FreeIPA 4.7

Autumn 2017. I have a work in progress at https://github.com/abbra/freeipa/tree/passdb-private-state. The refactored code allows to build against Samba 4.6 already, but will fail against master as there alos LDAP bind callback handling is removed and ldap_state structure access is removed too.

I'm planning to work on refactoring during SambaXP.

Metadata Update from @mbasti:
- Issue set to the milestone: FreeIPA 4.6 (was: FreeIPA 4.7)

master:

  • 11d43a16035d9ce7970ddf757f17025289ec4854 ipa-sam: use own private structure, not ldapsam_privates
  • 3ab6a68e91a4fad5af037a910fd4f6b6d8f7611f ipa-sam: use smbldap_set_bind_callback for Samba 4.7 or later

Metadata Update from @mbasti:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata Update from @mbasti:
- Issue set to the milestone: FreeIPA 4.5.3 (was: FreeIPA 4.6)

ipa-4-5:

  • dbc9c737fe99b542eb3799754612871a0c9b3263 ipa-sam: use own private structure, not ldapsam_privates
  • 933cfcb86417c8428d27c540d015288476cc87da ipa-sam: use smbldap_set_bind_callback for Samba 4.7 or later
Metadata