Bug 171358 - Wrong information in Howto:Kerberos
Summary: Wrong information in Howto:Kerberos
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: 389
Classification: Retired
Component: wiki
Version: 7.1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Rich Megginson
QA Contact: Orla Hegarty
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-10-21 01:44 UTC by Kostas Georgiou
Modified: 2007-04-18 17:33 UTC (History)
1 user (show)

Fixed In Version: 1.0
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-02-06 20:54:09 UTC
Embargoed:


Attachments (Terms of Use)

Description Kostas Georgiou 2005-10-21 01:44:52 UTC
After spending a day trying to figure out why the following didn't work
 nsSaslMapRegexString: (.*)@(.*)
i found out the following in the fedora-ds-7.1/ldap/servers/slapd/regex.c
 *      [7]             a regular expression in the form [1] to [10], enclosed
 *                      as \(form\) matches what form matches. The enclosure
 *                      creates a set of tags, used for [8] and for
 *                      pattern substution. The tagged forms are numbered
 *                      starting from 1.

So everything is working with entries of the form
nsSaslMapRegexString: \(.*\)
nsSaslMapRegexString: \([^/]*\)/\(.*\)

I don't think that the realm is ever send, but i haven't tried to authenticate
with a krb5 ticket from another realm.

Comment 1 Rich Megginson 2005-11-03 15:11:42 UTC
Ok.  I think I understand what you're saying.  Please check the page and let me
know if it is now correct.

Comment 2 Kostas Georgiou 2005-11-06 23:00:57 UTC
Seems right now apart from the DOMAIN/username section.

I use a regex of the form \([^/]+\)/\(.+\) (note that i replaced * with + since
it makes a lot more sense) to map kerberos principles with an instance, like
service/fqdn or user/admin. It really has nothing to do with DOMAIN/username.

For example if you want to map all services from hostname.domain to the
uid=hostname.domain,ou=hosts,dc=domain you can use  [^/]+/\(.+\) and a map base
of uid=\1,ou=hosts,dc=domain or you might want to map all principles with an
admin instance to uid=user,ou=Managers,dc=domain so you'll use \([^/]+\)/admin
and a mapbase of uid=\1,ou=Managers,dc=domain.


Note You need to log in before you can comment on or make changes to this bug.