storage.yml 1.72 KB
:DsAdmin::Storage::Ldap:
  :con:
    :host: 'host.weird-web-workers.org'
    :port: 389

  :DsAdmin::Model::User:
    :query:
      :base:   'ou=user,o=system,dc=weird-web-workers,dc=org'
      :filter: '(objectClass=posixAccount)'

    :objectClass:
      - 'account'
      - 'posixAccount'
      - 'shadowAccount'

    :map:
      :uid:           :name
      :userpassword:  :pass
      :uidnumber:     :uid
      :gidnumber:     :gid
      :loginshell:    :shell
      :homedirectory: :home

  :DsAdmin::Model::Group:
    :query:
      :base:   'ou=group,o=system,dc=weird-web-workers,dc=org'
      :filter: '(objectClass=posixGroup)'

    :objectClass: 'posixGroup'

    :map:
      :cn:        :name
      :gidnumber: :gid
      :memberuid: :members

  :DsAdmin::Model::Site:
    :query:
      :base:   'o=hosting,dc=weird-web-workers,dc=org'
      :filter: '(&(objectClass=organization)(!(o=hosting)))'

    :objectClass: 'organization'

    :map:
      :o: :name

  :DsAdmin::Model::MailAliasRole:
    :query:
      :base:   'o=hosting,dc=weird-web-workers,dc=org'
      :filter: '(&(objectClass=MailAlias)(objectClass=organizationalrole))'

    :objectClass:
      - 'organizationalRole'
      - 'MailAlias'

    :map:
      :cn: :user

  :DsAdmin::Model::MailAliasPerson:
    :query:
      :base:   'o=hosting,dc=weird-web-workers,dc=org'
      :filter: '(&(objectClass=MailAlias)(objectClass=person))'

    :objectClass: 
      - 'person'
      - 'MailAlias'

    :map:
      :sn: :surname
      :cn: :name

  :DsAdmin::Model::MailAccount:
    :query:
      :base:   'o=hosting,dc=weird-web-workers,dc=org'
      :filter: '(objectClass=mailAccount)'

    :objectClass: 
      - 'person'
      - 'MailAccount'

    :map:
      :homedirectory: :home