[Date Prev][Date Next] [Chronological] [Thread] [Top]

OpenLDAP 2.1.30 on ppc64 and x86 as backend for Samba

Hi list

Here is my setup:

OS = Linux (Gentoo distro)
Kernel = 2.6.8
OpenLDAP 2.1.30
Samba 3.0.9

I have a PDC and a FILE server running in 2 different lpars on a ppc64 (iSeries) machine. I have one more server running on x86 architecture which only serves ldap tree. The PDC server is the ldap master. It replicates the changes to the FILE server, which replicates the changes to the x86 server. The PDC uses the FILE server as secondary ldap host, and the x86 as the third. The FILE uses the PDC as the secondary and the x86 as the third.

I hope I make myself clear. I have been up many hours trying to fix this problem.

Here goes:

My company is placed in Denmark, and works in all Scandinavien. This includes Denmar, Norway, Sweden and Finland. The reason for mentioning this, is that I use the ISO8859-1 charset.

When a user makes the samba lookup a username like 'Administratör' (whichis the swedish name for administrator, I think) or any other username which contains 'funny letters' in the ldap tree, my ldap servers dies on the PPC64 machinery immediately. Here is a log for the happening just before it dies:

Dec  9 11:40:25 g-pdc slapd[12381]: conn=256 op=8 SRCH base="dc=xxxx,dc=xxx" scope=2 filter="(&(uid=Administrat\C3\B6r)(objectClass=sambaSamAccount))"
Dec  9 11:40:25 g-pdc slapd[12381]: conn=256 op=8 SRCH attr=uid uidNumber gidNumber homeDirectory sambaPwdLastSet sambaPwdCanChange sambaPwdMustChange sambaLogonTime sambaLogoffTime sambaKickoffTime cn displayName sambaHomeDrive sambaHomePath sambaLogonScript sambaProfilePath description sambaUserWorkstations sambaSID sambaPrimaryGroupSID sambaLMPassword sambaNTPassword sambaDomainName objectClass sambaAcctFlags sambaMungedDial sambaBadPasswordCount sambaBadPasswordTime sambaPasswordHistory modifyTimestamp sambaLogonHours modifyTimestamp

The only reason why my setup is still running 'smoothly' is because the x86doesn't die when searching in the ldap tree for this entry.

If I change the charset to UTF8 (in Samba) on the PDC as an example, the 'Administrat\C3\B6r' is changed to 'Administrat_r' and it works. I have allready changed this settings on my PDC, because I'm not file serving anything besides loginscripts on this server. The problem is, I can't change the charset (in Samba) on the FILE server, because of the ISO8859-1 and the filenames.

So my question is, has anybody seen this before, and have a solution for it? My setup is nothing fancy. It's really 'text book'.

Is this a problem with the setting in the environment?

Here are some output from my PDC:

g-pdc root # locale
g-pdc root #

root # gcc -v
Reading specs from /usr/lib/gcc/powerpc64-unknown-linux-gnu/3.4.1/specs
Configured with: /var/tmp/portage/gcc-3.4.1-r3/work/gcc-3.4.1/configure --prefix=/usr --bindir=/usr/powerpc64-unknown-linux-gnu/gcc-bin/3.4 --includedir=/usr/lib/gcc/powerpc64-unknown-linux-gnu/3.4.1/include --datadir=/usr/share/gcc-data/powerpc64-unknown-linux-gnu/3.4 --mandir=/usr/share/gcc-data/powerpc64-unknown-linux-gnu/3.4/man --infodir=/usr/share/gcc-data/powerpc64-unknown-linux-gnu/3.4/info --enable-shared --host=powerpc64-unknown-linux-gnu --target=powerpc64-unknown-linux-gnu --with-system-zlib --enable-languages=c,c++,f77 --enable-threads=posix --enable-long-long --disable-checking --disable-libunwind-exceptions --enable-cstdio=stdio--enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc/powerpc64-unknown-linux-gnu/3.4.1/include/g++-v3 --with-local-prefix=/usr/local --disable-werror --enable-shared --enable-nls --without-included-gettext --disable-multilib --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.4.1 20040803 (Gentoo Linux 3.4.1-r3, ssp-3.4-2, pie-
g-pdc root #

g-pdc root # emerge -pv openldap

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild     UD] net-nds/openldap-2.1.30-r4 [2.1.30-r4] +berkdb +crypt -debug +gdbm -ipv6 -odbc -perl* +readline +samba -sasl -slp +ssl* +tcpd 0 kB

Total size of downloads: 0 kB

g-pdc root #

I hope someone can help me here.

Thanks in advanced.

- Jacob
.____          __________  _________
|    |   _____ \______   \/   _____/
|    |   \__  \ |     ___/\_____  \
|    |___ / __ \|    |    /        \
|_______ (____  /____|   /_______  /
        \/    \/  jni@laps.dk    \/

|As far as the laws of mathematics refer to reality,  |
|they are not certain; and as far as they are certain,|
|they do not refer to reality.                        |

Version: GnuPG v1.2.4 (GNU/Linux)