<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,</p>
<p>I'd like to dynamically provide group data when group data is
queried by the system (as in "getent group").</p>
<p>Since nsswitch can use systemd, I've looked at nss-systemd.</p>
<p>As a first step I tried to define a Static Drop-In JSON User
Record (because user definition is documented with more details
than group definition).</p>
<p>So I added a toto.user in /etc/userdb/ with this</p>
<p>{<br>
"userName" : "toto",<br>
"uid" : 7777<br>
}<br>
and a 7777.user file pointing to toto.user</p>
<p>But when I run "getent passwd", there's no toto user.</p>
<p>I tried to see a bit what's going on with strace and I see that
getent opens libnss_systemd.so.2 and looks for files in
/run/systemd/userdb.</p>
<p>But it's not even trying to read in the directories <code
class="filename">etc/userdb/</code>, <code class="filename">/run/userdb/</code>,
<code class="filename">/run/host/userdb/</code> and <code
class="filename">/usr/lib/userdb/</code></p>
<code class="filename"></code>
<p>Any suggestion?</p>
<p>Sincerely<br>
</p>
<div class="moz-signature">-- <br>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
<font face="DejaVu Sans"><b><font color="#1f497d">Gildas Bayard</font></b><br>
Ingénieur de Recherche<br>
Responsable Sécurité des Systèmes d'Informations<br>
Coordonnateur pour la Protection du Potentiel Scientifique et
Technique<br>
<i>Télétravail le mercredi</i><br>
Laboratoire HEUDIASYC - UMR CNRS 7253 - GI028<br>
UTC Centre de Recherches de Royallieu<br>
BP 20529 - 60205 Compiègne Cedex<br>
Tél. 03 44 23 46 71</font> </div>
</body>
</html>