Package: slapd
Version: 2.2.23-1
Severity: important

Well i hav not make a patch as the script are not on the disk at
this stage (well the ral reason is i being lazy :)

/tmp/slapd.config.xxxxxx

# Make sure the values entered make sense
validate_initial_config() {
  local invalid
  invalid=""

  # Make sure the domain name is valid
  # The regexp doesn't work for UTF-8 domain names, but for that to
  # work, we would also need to Base64 encode it in the LDIF; since
  # we're not doing it at the moment, this should be fine for now
  db_get slapd/domain
  if [ -z "$RET" ] || ! echo "$RET" | grep -q '^[a-zA-Z0-9-.]*$'; then
    db_fset slapd/domain seen false
    invalid=true
  fi

the regex domain regex is broken because there is a "-" at the end:
 '^[a-zA-Z0-9-.]*$'
echo "test.server" |  grep -q '^[a-zA-Z0-9-.]*$'
grep: Invalid range end

I don't know how to fix since i don't understand the "." at the end of the range
pattern too.
I would say:
  '^\([a-zA-Z0-9]*\.\)\{1,2\}[a-zA-Z0-9]*$'
does the job ([a-zA-Z0-9] are like [:alnum:] though the grep manual
tells the second form may support other wharset than ascii and your comment in
the code tells that utf-8 would broke the ldiff output ... maybe it is safer to 
keep this
"long" form ).

Regards
Alban

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-rc5
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=UTF-8)

Versions of packages slapd depends on:
ii  coreutils [fileutils]       5.2.1-2      The GNU core utilities
ii  debconf                     1.4.47       Debian configuration management sy
ii  fileutils                   5.2.1-2      The GNU file management utilities 
ii  libc6                       2.3.4-2      GNU C Library: Shared libraries an
ii  libdb4.2                    4.2.52-18    Berkeley v4.2 Database Libraries [
ii  libiodbc2                   3.52.2-3     iODBC Driver Manager
ii  libldap-2.2-7               2.2.23-1     OpenLDAP libraries
ii  libltdl3                    1.6-0+1.5a-4 A system independent dlopen wrappe
ii  libperl5.8                  5.8.4-8      Shared Perl library
ii  libsasl2                    2.1.19-1.5   Authentication abstraction library
ii  libslp1                     1.0.11a-2    OpenSLP libraries
ii  libssl0.9.7                 0.9.7e-3     SSL shared libraries
ii  libwrap0                    7.6.dbs-8    Wietse Venema's TCP wrappers libra
ii  perl [libmime-base64-perl]  5.8.4-8      Larry Wall's Practical Extraction 
ii  psmisc                      21.6-1       Utilities that use the proc filesy



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to