Skip to content

Commit 20568d9

Browse files
committed
freeipa dirsrv segfault post
1 parent 99bc12b commit 20568d9

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
layout: posts
3+
title: FreeIPA dirsrv Segfault
4+
---
5+
6+
Our FreeIPA server 4.6.8-5 running on CentOS 7 recently had a problem. We couldn't start the dirsrv service. Investigation in the kernal log revealed a segfault.
7+
8+
```
9+
[16540.924675] ns-slapd[16567]: segfault at 8 ip 00007faf8d341b49 sp 00007ffe84142820 error 4 in libipa_pwd_extop.so[7faf8d332000+2d000]
10+
```
11+
12+
There was <a href="https://freeipa-users.redhat.narkive.com/fpMjXHxI/ns-slapd-hang-segfault" target="_blank">a mailing list thread</a> from about 10 years ago which described a similar segfault. The problem here was some bad formatting in a /etc/krb5.conf file.
13+
14+
Our file didn't have any such issues, but I did notice our file was including some directories:
15+
```
16+
includedir /etc/krb5.conf.d/
17+
includedir /var/lib/sss/pubconf/krb5.include.d/
18+
```
19+
20+
Looking into that second include, I noticed a new file was added recently:
21+
```
22+
root@corp-idm02:/var/lib/sss/pubconf/krb5.include.d# ls -ltr
23+
total 12
24+
-rw-------. 1 root root 0 Aug 27 10:26 localauth_pluginGts2pi
25+
-rw-r--r--. 1 root root 98 Sep 14 17:17 localauth_plugin
26+
-rw-r--r--. 1 root root 35 Sep 14 17:17 krb5_libdefaults
27+
-rw-r--r--. 1 root root 15 Sep 14 17:17 domain_realm_corp_domain_net
28+
```
29+
30+
That `localauth_pluginGts2pi` file was empty and had weird permissions. I ended up removing the file, perhaps fixing the permissions would have solved it as well. This allowed dirsrv to start.

0 commit comments

Comments
 (0)