[1233] in Hesiod

home help back first fref pref prev next nref lref last post

[Hesiod] Hesiod and long group records

daemon@ATHENA.MIT.EDU (Richard Feltstykket)
Tue Sep 4 18:26:07 2018

Date: Tue, 4 Sep 2018 15:24:47 -0700
From: Richard Feltstykket <rafeltstykket@ucdavis.edu>
To: hesiod@mit.edu
Message-ID: <20180904222447.GD31892@odinseye.genomecenter.ucdavis.edu>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============4286199642284021863=="
Errors-To: hesiod-bounces@mit.edu


--===============4286199642284021863==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="C+ts3FVlLX8+P6JN"
Content-Disposition: inline


--C+ts3FVlLX8+P6JN
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi List,

We are running into a problem with large groups on ubuntu 16.04.  Hesinfo returns the correct record but getent does not.

rf@odinseye:~$ hesinfo workshop group
workshop:x:2029:fugon,dshill,rpnagarajan,tkremin,dalhindi,cprator,niyer,lixinzhe,rbellone,abzzram,paulae,sefeeney,yyaqiaoo,oanh,yiklim,joshi,skinnerjs,mclewis,jltanaka,dlebron,malbrown,xycheng,jli,shiqizh,kroy,bpdurbin,emilyk,csbenton,sharifdvm,bridget,nikj,mltu,kjennings,alaahmed,rkallen,lifswaro,datawrangler,jennifermoussa,ruta,jaime,markjs,zephyryi,ghanna,jbmiesfeld,shayne,cjjacob,mquesta,limchen,ajmichael,sfyanw,carfranc,agingrich,kluepdan,minyuan,arios,yangx,msettles,adwright,pmhenry,acartwright,kmlewald,devanmurphy,loxiles,yuabai,hforbes,onoses,eokello,ghwada,jfass,jabaily,cincinhuang,yaoluo,stafford,sleepery,ragrahn,karin,rf,mbritton,hergarden,cpinzari,ebattivelli,vwang

rf@odinseye:~$ getent group workshop
rf@odinseye:~$ echo $?
2

The workshop.group.ns record is in in a single TXT record in DNS like this:
"workshop:x:2029:fugon,dshill,rpnagarajan,tkremin,dalhindi,cprator,niyer,lixinzhe,rbellone,abzzram,paulae,sefeeney,yyaqiaoo,oanh,yiklim,joshi,skinnerjs,mclewis,jltanaka,dlebron,malbrown,xycheng,jli,shiqizh,kroy,bpdurbin,emilyk,csbenton,sharifdvm,bridg" "et,nikj,mltu,kjennings,alaahmed,rkallen,lifswaro,datawrangler,jennifermoussa,ruta,jaime,markjs,zephyryi,ghanna,jbmiesfeld,shayne,cjjacob,mquesta,limchen,ajmichael,sfyanw,carfranc,agingrich,kluepdan,minyuan,arios,yangx,msettles,adwright,pmhenry,acartw" "right,kmlewald,devanmurphy,loxiles,yuabai,hforbes,onoses,eokello,ghwada,jfass,jabaily,cincinhuang,yaoluo,stafford,sleepery,ragrahn,karin,rf,mbritton,hergarden,cpinzari,ebattivelli,vwang"

I was perusing the nss_hesiod directory in the glibc (2.23) source package for ubuntu 16.04 and also the source for the utility hesinfo and it looks like the version in glibc may not be new enough to support responses larger than 1024 bytes.  Does that sound accurate?

In hesiod.c for the hesinfo program I see:

  /* Construct the query. */
  n = res_mkquery(QUERY, name, C_IN, T_TXT, NULL, 0, NULL, qbuf, PACKETSZ);

Whereas in nss_hesiod I see:
  /*
   * Construct the query and send it.
   */
   n = res_mkquery(QUERY, name, class, T_TXT, NULL, 0, NULL, qbuf, MAX_HESRESP);

Am I on the right track here?

Thanks!
Richard

--C+ts3FVlLX8+P6JN
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJbjwYvAAoJEJO81r3fDHGU9EkH/jhdvEzXu27ZetTvY2+7BJT9
JvygFTZIAgf/xeW6VntpCrQ2KlpYq363JD+Gy3lLxGwZRLNYIAiWWNdFAKkMWlS7
JlTz4kymizJp5UqQ3fQwSwJq4ItwQQUttEd7BSTVZ5B/aoBb6Co+/G2+QAVakKBd
kUV1Unrp0PZ7We17RwabyBigpl2sPMmlZx1cJv0Bvx6GKr9mZAdX00IcCkcDgP+7
n4QM9xM6FYo/4PS/NyKoTw2hAPtxBQmNkNtFjsn19sRYJzNpFGSPa5XfPAmyok1w
ORu0MpPEngTx63upg86mxGHwphYDbs1/t4nJINN5PNQBuOhwrdT52xN3mXg5NiE=
=0duw
-----END PGP SIGNATURE-----

--C+ts3FVlLX8+P6JN--

--===============4286199642284021863==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Hesiod@mit.edu
http://mailman.mit.edu/mailman/listinfo/hesiod

--===============4286199642284021863==--

home help back first fref pref prev next nref lref last post