The ldap_user.install creates the fields as configured below. The widget of type "ldap_user_hidden" is used to hide the fields. Once LDAP user is disabled, the fields use the default text field format and are visible and editable. I see 2 ways out of this:
1) Create a custom field so it "goes away" completely when the ldap module is disabled.
2) Figure out a way to use a built in widget that is not visible or at least not editable.
I think 2 is an easier solution to maintain and develop. Any insight into how to do this would be appreciated.
Comments
Comment #1
johnbarclay commentedThe ldap_user.install creates the fields as configured below. The widget of type "ldap_user_hidden" is used to hide the fields. Once LDAP user is disabled, the fields use the default text field format and are visible and editable. I see 2 ways out of this:
1) Create a custom field so it "goes away" completely when the ldap module is disabled.
2) Figure out a way to use a built in widget that is not visible or at least not editable.
I think 2 is an easier solution to maintain and develop. Any insight into how to do this would be appreciated.
Comment #2
johnbarclay commentedThis is a duplicate of #1856124: LDAP User: user entity field 'ldap_user_prov_entries' has group heading showing in user profile form