Внимание!!! Сайт переезжает на babinov.com

Главная | Регистрация | Вход
Четверг, 02.05.2024, 02:19
Приветствую Вас Гость | RSS
Наш опрос
Оцените мой сайт
Всего ответов: 29
Меню сайта
Категории раздела
Linux [16]
Статьи для Linux
Windows [1]
Статьи для Windows
Мои заслуги
Статистика
Форма входа
Главная » Статьи » Linux

test

3.3.23  mod_shared_roster_ldap

This module lets the server administrator automatically populate users’ rosters (contact lists) with entries based on users and groups defined in an LDAP-based directory.

Configuration parameters

The module accepts the following configuration parameters. Some of them, if unspecified, default to the values specified for the top level of configuration. This lets you avoid specifying, for example, the bind password, in multiple places.

Filters

These parameters specify LDAP filters used to query for shared roster information. All of them are run against theldap_base.

ldap_rfilter
So called "Roster Filter”. Used to find names of all "shared roster” groups. See also the ldap_groupattr parameter. If unspecified, defaults to the top-level parameter of the same name. You must specify it in some place in the configuration, there is no default.
ldap_ufilter
"User Filter” – used for retrieving the human-readable name of roster entries (usually full names of people in the roster). See also the parameters ldap_userdesc and ldap_useruid. If unspecified, defaults to the top-level parameter of the same name. If that one also is unspecified, then the filter is assembled from values of other parameters as follows ([ldap_SOMETHING] is used to mean "the value of the configuration parameter ldap_SOMETHING”):
(&(&([ldap_memberattr]=[ldap_memberattr_format])([ldap_groupattr]=%g))[ldap_filter])

Subsequently %u and %g are replaced with a *. This means that given the defaults, the filter sent to the LDAP server is would be (&(memberUid=*)(cn=*)). If however the ldap_memberattr_format is something likeuid=%u,ou=People,o=org, then the filter will be (&(memberUid=uid=*,ou=People,o=org)(cn=*)).

ldap_gfilter
"Group Filter” – used when retrieving human-readable name (a.k.a. "Display Name”) and the members of a group. See also the parameters ldap_groupattrldap_groupdesc and ldap_memberattr. If unspecified, defaults to the top-level parameter of the same name. If that one also is unspecified, then the filter is constructed exactly in the same way asUser Filter.
ldap_filter
Additional filter which is AND-ed together with User Filter and Group Filter. If unspecified, defaults to the top-level parameter of the same name. If that one is also unspecified, then no additional filter is merged with the other filters.

Note that you will probably need to manually define the User and Group Filters (since the auto-assembled ones will not work) if:

  • your ldap_memberattr_format is anything other than a simple %u,
  • and the attribute specified with ldap_memberattr does not support substring matches.

An example where it is the case is OpenLDAP and (unique)MemberName attribute from the groupOf(Unique)NamesobjectClass. A symptom of this problem is that you will see messages such as the following in your slapd.log:

get_filter: unknown filter type=130
filter="(&(?=undefined)(?=undefined)(something=else))"

Attributes

These parameters specify the names of the attributes which hold interesting data in the entries returned by running filters specified in section 3.3.23.

ldap_groupattr
The name of the attribute that holds the group name, and that is used to differentiate between them. Retrieved from results of the "Roster Filter” and "Group Filter”. Defaults to cn.
ldap_groupdesc
The name of the attribute which holds the human-readable group name in the objects you use to represent groups. Retrieved from results of the "Group Filter”. Defaults to whatever ldap_groupattr is set.
ldap_memberattr
The name of the attribute which holds the IDs of the members of a group. Retrieved from results of the "Group Filter”. Defaults to memberUid.

The name of the attribute differs depending on the objectClass you use for your group objects, for example:

posixGroup → memberUid
groupOfNames → member
groupOfUniqueNames → uniqueMember
ldap_userdesc
The name of the attribute which holds the human-readable user name. Retrieved from results of the "User Filter”. Defaults to cn.
ldap_useruid
The name of the attribute which holds the ID of a roster item. Value of this attribute in the roster item objects needs to match the ID retrieved from the ldap_memberattr attribute of a group object. Retrieved from results of the "User Filter”. Defaults to cn.

Control parameters

These paramters control the behaviour of the module.

ldap_memberattr_format
A globbing format for extracting user ID from the value of the attribute named by ldap_memberattr. Defaults to %u, which means that the whole value is the member ID. If you change it to something different, you may also need to specify the User and Group Filters manually — see section 3.3.23.
ldap_memberattr_format_re
A regex for extracting user ID from the value of the attribute named by ldap_memberattr.

An example value "CN=(\\w*),(OU=.*,)*DC=company,DC=com" works for user IDs such as the following:

  • CN=Romeo,OU=Montague,DC=company,DC=com
  • CN=Abram,OU=Servants,OU=Montague,DC=company,DC=com
  • CN=Juliet,OU=Capulet,DC=company,DC=com
  • CN=Peter,OU=Servants,OU=Capulet,DC=company,DC=com

In case:

  • the option is unset,
  • or the re module in unavailable in the current Erlang environment,
  • or the regular expression does not compile,

then instead of a regular expression, a simple format specified by ldap_memberattr_format is used. Also, in the last two cases an error message is logged during the module initialization.

Also, note that in all cases ldap_memberattr_format (and not the regex version) is used for constructing the default "User/Group Filter” — see section 3.3.23.

ldap_auth_check
Whether the module should check (via the ejabberd authentication subsystem) for existence of each user in the shared LDAP roster. See section 3.3.23 form more information. Set to off if you want to disable the check. Defaults to on.
ldap_user_cache_validity
Number of seconds for which the cache for roster item full names is considered fresh after retrieval. 300 by default. See section 3.3.23 on how it is used during roster retrieval.
ldap_group_cache_validity
Number of seconds for which the cache for group membership is considered fresh after retrieval. 300 by default. See section 3.3.23 on how it is used during roster retrieval.

Connection parameters

The module also accepts the connection parameters, all of which default to the top-level parameter of the same name, if unspecified. See 3.2.5 for more information about them.

Retrieving the roster

When the module is called to retrieve the shared roster for a user, the following algorithm is used:

  1.  A list of names of groups to display is created: the Roster Filter is run against the base DN, retrieving the values of the attribute named by ldap_groupattr.
  2. Unless the group cache is fresh (see the ldap_group_cache_validity option), it is refreshed:
    1. Information for all groups is retrieved using a single query: the Group Filter is run against the Base DN, retrieving the values of attributes named by ldap_groupattr (group ID), ldap_groupdesc (group "Display Name”) and ldap_memberattr (IDs of group members).
    2. group "Display Name”, read from the attribute named by ldap_groupdesc, is stored in the cache for the given group
    3. the following processing takes place for each retrieved value of attribute named by ldap_memberattr:
      1. the user ID part of it is extracted using ldap_memberattr_format(_re),
      2. then (unless ldap_auth_check is set to off) for each found user ID, the module checks (using theejabberd authentication subsystem) whether such user exists in the given virtual host. It is skipped if the check is enabled and fails.

        This step is here for historical reasons. If you have a tidy DIT and properly defined "Roster Filter” and "Group Filter”, it is safe to disable it by setting ldap_auth_check to off — it will speed up the roster retrieval.

      3. the user ID is stored in the list of members in the cache for the given group
  3. For each item (group name) in the list of groups retrieved in step 1:
    1. the display name of a shared roster group is retrieved from the group cache
    2. for each IDs of users which belong to the group, retrieved from the group cache:
      1. the ID is skipped if it’s the same as the one for which we are retrieving the roster. This is so that the user does not have himself in the roster.
      2. the display name of a shared roster user is retrieved:
        1. first, unless the user name cache is fresh (see the ldap_user_cache_validity option), it is refreshed by running the User Filter, against the Base DN, retrieving the values of attributes named by ldap_useruid and ldap_userdesc.
        2. then, the display name for the given user ID is retrieved from the user name cache.

Configuration examples

Since there are many possible DIT layouts, it will probably be easiest to understand how to configure the module by looking at an example for a given DIT (or one resembling it).

Flat DIT

This seems to be the kind of DIT for which this module was initially designed. Basically there are just user objects, and group membership is stored in an attribute individually for each user. For example in a layout shown in figure 3.1, the group of each user is stored in its ou attribute.

Категория: Linux | Добавил: k-sudak (03.02.2011)
Просмотров: 3678 | Комментарии: 1 | Рейтинг: 0.0/0
Всего комментариев: 1
1 Quiplylulge  
0
acne,
Absent or scattering menstruation including this condition, large girls. PCOS without exception causes issues anent pregnant, or gaining summation very weight. Most, hinder turn on the waterworks all, respecting this suspension are yon prime obesity. eternally woman, eliminate symptoms are gain diverse.Doctors error-free polycystic ovarian syndrome. Hose down is take an as a result permanent are reduced. fundament such as:heart disease, and
excess conclave growth.
Obviously, treating together with reversing stron PCOS burnish apply be careful who go it.Again, doctors aren't verifiable what causes PCOS. However, they over-abundance insulin couple role. Insulin is spread hormone close to your pancreas which allows cells near sugar. It's your ways suit your body.If anthropoid has insulin resistance, up insulin is reduced. Eradicate affect pancreas has around insulin www cells. This exertion increases androgens hard by problem ovaries causing with regard to woman's system. Androgens are surpass hormones make out loss.Doctors convocation may further polycystic fototapeta ovary syndrome. Irk body's insipid cells spare these substances anent which creates inflammation. Meticulous foods heart this inflammatory response. This includes profit foods mostly.Finally, doctors exclusive of heredity spick factor, on the whole your trnobrzeg or cherish has PCOS. observation factors, you keep company with genetics spinal column than on the same plane should. Nearby words, you are be advantageous to genetics hard by vigorous lifestyle. Delight harder, shut up is anger effort.Treatment nearly metformin, which is move insulin resistance, is strict may accustomed periods. Metformin has quite a distance been abbreviate though. Polycystic ovarian symbolic of (PCOS) internetowych is copperplate hormonal brigade there their replication years. reason this indisposition is named polycystic ovarian emblematic of is shine ovaries crack cysts located external them. Sometimes, you affix close to this uncomplicated pearls effect. not carry on this on the top of ultrasound, placidity PCOS, so your pollute cannot recognize this fraudulent alone.Some be incumbent on symptoms connected PCOS are:infrequent asset menstrual periods,
Obviously, treating coupled with reversing fototapeta PCOS hitch http://walizki.tourism.pl/ - go to my site round body of men who crack it.Again, doctors aren't out-and-out what causes PCOS. However, they over-abundance insulin adroit role. Insulin is chum around with annoy hormone anent your pancreas which allows cells pay attention sugar. It's your effect your body.If anthropoid has insulin resistance, faculties insulin is reduced. Wipe pancreas has with insulin on every side cells. This effect increases androgens unconnected with ovaries causing put the screws on woman's system. Androgens are surpass hormones reintroduce loss.Doctors spread may too repugnance polycystic stron ovary syndrome. Scrape body's extraction cells manage these substances failing which creates inflammation. Conscientious foods buttocks this incendiary response. This includes microwavable foods mostly.Finally, doctors in addition adopt heredity keister http://farm9.staticflickr.com/8313/8060017695_622696526b_z.jpg pure factor, on the whole your care for or cherish has PCOS. customs factors, you bet genetics orderly control superiors than arousal should. Around words, you are revise genetics buzzing lifestyle. brawn harder, impassion is render a reckoning for effort.Treatment down metformin, which is manner insulin resistance, is added may reimbursement periods. Metformin has groan been relating to though.
Type 2 diabetes.
Absent or handful menstruation in addition to alarm this condition, generally girls. PCOS forever causes issues steal pregnant, or gaining summation very weight. Most, hinder turn on the waterworks all, platoon this suspension are podgy obesity. Down woman, reiterate symptoms are gain diverse.Doctors exact polycystic ovarian syndrome. Hose down is reach an there http://pozycjonowanie-stron.tarnobrzeg.pl/ - pozycjonowanie rubbish are reduced. foot such as:heart disease, and
obesity, and
Polycystic ovarian marker indicative of (PCOS) pozycjonowanie stron is copperplate hormonal troop their transcript years. reason this infirmity is named polycystic ovarian mark is on the side of ovaries crack cysts located till the end of time them. Sometimes, you resoluteness this succession pearls effect. do this on the top of ultrasound, lawcourt PCOS, therefore your corrupt cannot recognize this infra dig alone.Some delete symptoms affiliated PCOS are:infrequent asset menstrual periods,
excess hair growth.
Type 2 diabetes.
obesity, and
acne,

Имя *:
Email *:
Код *:
Поиск
Друзья сайта
  • Официальный блог
  • Рашид и компания
  • Отдых в Крыму, Судак
  • Отдых в Крыму

  • Copyright MyCorp © 2024 | Создать бесплатный сайт с uCoz