mirror of
https://gitlab.unicamp.br/infimecc_drupal11_modules/base_site_config.git
synced 2026-03-09 17:57:41 -03:00
Configurações LDAP *.settings migradas para hook_install().
Simple configs já criadas pelas dependências são agora aplicadas programaticamente via hook_install(), evitando conflito ao importar via config/install. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
langcode: pt-br
|
||||
status: true
|
||||
dependencies: { }
|
||||
id: departmental_roles
|
||||
label: 'Departmental roles'
|
||||
provider: ldap_provider
|
||||
provider_config:
|
||||
status:
|
||||
server: ldap_ime_unicamp_br
|
||||
only_ldap_authenticated: true
|
||||
filter_and_mappings:
|
||||
use_first_attr_as_groupid: false
|
||||
provider_mappings:
|
||||
-
|
||||
query: 'cn=funcionarios,ou=Group,dc=ime,dc=unicamp,dc=br'
|
||||
is_regex: false
|
||||
-
|
||||
query: 'cn=professores,ou=Group,dc=ime,dc=unicamp,dc=br'
|
||||
is_regex: false
|
||||
-
|
||||
query: 'cn=pesquisadores,ou=Group,dc=ime,dc=unicamp,dc=br'
|
||||
is_regex: false
|
||||
-
|
||||
query: 'cn=posdoutorandos,ou=Group,dc=ime,dc=unicamp,dc=br'
|
||||
is_regex: false
|
||||
consumer: authorization_drupal_roles
|
||||
consumer_config: { }
|
||||
consumer_mappings:
|
||||
-
|
||||
role: staff
|
||||
-
|
||||
role: professor
|
||||
-
|
||||
role: pesquisador
|
||||
-
|
||||
role: posdoutorando
|
||||
synchronization_modes:
|
||||
user_logon: user_logon
|
||||
synchronization_actions:
|
||||
create_consumers: '0'
|
||||
revoke_provider_provisioned: '0'
|
||||
62
config/optional/ldap_departments_sync.settings.yml
Normal file
62
config/optional/ldap_departments_sync.settings.yml
Normal file
@@ -0,0 +1,62 @@
|
||||
ldap_server_id: ldap_ime_unicamp_br
|
||||
ldap_query_id: department_sync
|
||||
enable_hierarchy: 1
|
||||
parent_attribute: departmentNumber
|
||||
child_attribute: imeccDepartmentCode
|
||||
group_type_id: departments
|
||||
attribute_mappings:
|
||||
-
|
||||
field: label
|
||||
attribute: description
|
||||
mapping_type: simple
|
||||
-
|
||||
field: field_dept_code
|
||||
attribute: imeccDepartmentCode
|
||||
mapping_type: simple
|
||||
-
|
||||
field: field_dept_acronym
|
||||
attribute: cn
|
||||
mapping_type: simple
|
||||
-
|
||||
field: field_dept_type
|
||||
attribute: imeccDepartmentType
|
||||
mapping_type: simple
|
||||
-
|
||||
field: field_dept_phone
|
||||
attribute: telephoneNumber
|
||||
mapping_type: simple
|
||||
-
|
||||
field: field_dept_room
|
||||
attribute: roomNumber
|
||||
mapping_type: simple
|
||||
-
|
||||
field: field_dept_mail
|
||||
attribute: mail
|
||||
mapping_type: simple
|
||||
-
|
||||
field: field_dept_coord
|
||||
attribute: imeccDepartmentCoord
|
||||
mapping_type: user_reference
|
||||
-
|
||||
field: field_dept_coord_assoc
|
||||
attribute: imeccDepartmentAssocCoord
|
||||
mapping_type: user_reference
|
||||
role_mapping_enabled: 1
|
||||
role_mappings:
|
||||
-
|
||||
group_role: departments-member
|
||||
source: group_field_match
|
||||
source_field: field_user_dept_code
|
||||
group_field: field_dept_code
|
||||
values: { }
|
||||
sync_users: 1
|
||||
access_rules:
|
||||
-
|
||||
label: null
|
||||
entity_type: null
|
||||
bundle: ''
|
||||
operations: { }
|
||||
mode: restrictive
|
||||
memberships: { }
|
||||
field_conditions: { }
|
||||
enabled: false
|
||||
@@ -0,0 +1,13 @@
|
||||
langcode: pt-br
|
||||
status: true
|
||||
dependencies: { }
|
||||
id: department_sync
|
||||
label: 'Department Sync'
|
||||
server_id: ldap_ime_unicamp_br
|
||||
base_dn: 'ou=Departments,dc=ime,dc=unicamp,dc=br'
|
||||
filter: (objectClass=imeccDepartment)
|
||||
attributes: 'cn,imeccDepartmentCode,departmentNumber,imeccDepartmentType,imeccDepartmentCoord,imeccDepartmentAssocCoord,description,mail,telephoneNumber,roomNumber'
|
||||
size_limit: 0
|
||||
time_limit: 0
|
||||
dereference: 0
|
||||
scope: one
|
||||
13
config/optional/ldap_query.ldap_query_entity.people_sync.yml
Normal file
13
config/optional/ldap_query.ldap_query_entity.people_sync.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
langcode: pt-br
|
||||
status: true
|
||||
dependencies: { }
|
||||
id: people_sync
|
||||
label: 'People Sync'
|
||||
server_id: ldap_ime_unicamp_br
|
||||
base_dn: 'ou=People,dc=ime,dc=unicamp,dc=br'
|
||||
filter: '(&(objectClass=imeccPerson)(|(employeeType=Professor)(employeeType=Pesquisador)(employeeType=Posdoutorando)(employeeType=Funcionario)))'
|
||||
attributes: ''
|
||||
size_limit: 0
|
||||
time_limit: 0
|
||||
dereference: 0
|
||||
scope: one
|
||||
37
config/optional/ldap_servers.server.ads1_ime_unicamp_br.yml
Normal file
37
config/optional/ldap_servers.server.ads1_ime_unicamp_br.yml
Normal file
@@ -0,0 +1,37 @@
|
||||
langcode: pt-br
|
||||
status: true
|
||||
dependencies: { }
|
||||
id: ads1_ime_unicamp_br
|
||||
label: ads1.ime.unicamp.br
|
||||
type: ad
|
||||
address: ads1.ime.unicamp.br
|
||||
port: 389
|
||||
timeout: 10
|
||||
encryption: none
|
||||
weight: null
|
||||
bind_method: service_account
|
||||
binddn: 'cn=administrator,cn=users,dc=ime,dc=unicamp,dc=br'
|
||||
bindpw: hi6sk0ss
|
||||
basedn:
|
||||
- 'cn=USERS,dc=ime,dc=unicamp,dc=br'
|
||||
user_attr: samaccountname
|
||||
account_name_attr: ''
|
||||
mail_attr: ''
|
||||
mail_template: ''
|
||||
picture_attr: ''
|
||||
unique_persistent_attr: ''
|
||||
unique_persistent_attr_binary: false
|
||||
user_dn_expression: ''
|
||||
testing_drupal_username: ''
|
||||
testing_drupal_user_dn: ''
|
||||
grp_unused: true
|
||||
grp_object_cat: ''
|
||||
grp_nested: false
|
||||
grp_user_memb_attr_exists: false
|
||||
grp_user_memb_attr: ''
|
||||
grp_memb_attr: ''
|
||||
grp_memb_attr_match_user_attr: ''
|
||||
grp_derive_from_dn: false
|
||||
grp_derive_from_dn_attr: ''
|
||||
grp_test_grp_dn: ''
|
||||
grp_test_grp_dn_writeable: ''
|
||||
37
config/optional/ldap_servers.server.ldap_ime_unicamp_br.yml
Normal file
37
config/optional/ldap_servers.server.ldap_ime_unicamp_br.yml
Normal file
@@ -0,0 +1,37 @@
|
||||
langcode: pt-br
|
||||
status: true
|
||||
dependencies: { }
|
||||
id: ldap_ime_unicamp_br
|
||||
label: ldap.ime.unicamp.br
|
||||
type: openldap
|
||||
address: ldap.ime.unicamp.br
|
||||
port: 389
|
||||
timeout: 10
|
||||
encryption: none
|
||||
weight: null
|
||||
bind_method: anon
|
||||
binddn: null
|
||||
bindpw: null
|
||||
basedn:
|
||||
- 'dc=ime,dc=unicamp,dc=br'
|
||||
user_attr: uid
|
||||
account_name_attr: ''
|
||||
mail_attr: mail
|
||||
mail_template: ''
|
||||
picture_attr: ''
|
||||
unique_persistent_attr: uid
|
||||
unique_persistent_attr_binary: false
|
||||
user_dn_expression: ''
|
||||
testing_drupal_username: ''
|
||||
testing_drupal_user_dn: ''
|
||||
grp_unused: false
|
||||
grp_object_cat: groupofmembers
|
||||
grp_nested: false
|
||||
grp_user_memb_attr_exists: false
|
||||
grp_user_memb_attr: ''
|
||||
grp_memb_attr: member
|
||||
grp_memb_attr_match_user_attr: dn
|
||||
grp_derive_from_dn: false
|
||||
grp_derive_from_dn_attr: ''
|
||||
grp_test_grp_dn: ''
|
||||
grp_test_grp_dn_writeable: ''
|
||||
Reference in New Issue
Block a user