#6877 ipasam needs changes for Samba 4.7
Closed: fixed 6 years ago Opened 7 years ago 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

7 years ago

@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

6 years ago

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)

6 years ago

master:

  • 11d43a1 ipa-sam: use own private structure, not ldapsam_privates
  • 3ab6a68 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)

6 years ago

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

6 years ago

ipa-4-5:

  • dbc9c73 ipa-sam: use own private structure, not ldapsam_privates
  • 933cfcb ipa-sam: use smbldap_set_bind_callback for Samba 4.7 or later

Login to comment on this ticket.

Metadata