Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate how we can support for writing back relations in LDAPService::updateLDAPFromMember #62

Open
sabina-talipova opened this issue Oct 11, 2023 · 0 comments

Comments

@sabina-talipova
Copy link
Contributor

sabina-talipova commented Oct 11, 2023

Description

SilverStripe\Security\Member.ldap_field_mappings defines the AD attributes that should be mapped to Member fields. We must implement logic for the case if instance of Member class has relationships has_one, has_many, etc.
See

foreach ($member->config()->ldap_field_mappings as $attribute => $field) {
$relationClass = $member->getRelationClass($field);
if ($relationClass) {
// todo no support for writing back relations yet.
} else {
$attributes[$attribute] = $member->$field;
}
}

@GuySartorelli GuySartorelli changed the title TODO: LDAPService::updateLDAPFromMember. Investigate how we can support for writing back relations. Investigate how we can support for writing back relations in LDAPService::updateLDAPFromMember Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant