Gentoo Archives: gentoo-embedded

From: paul k <pkoelle@××××××××××.de>
To: "Peter S. Mazinger" <ps.m@×××.net>
Cc: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] getent is not present in uclibc
Date: Wed, 09 Jun 2004 10:10:18
Message-Id: 40C6E245.4040209@onlinehome.de
In Reply to: Re: [gentoo-embedded] getent is not present in uclibc by "Peter S. Mazinger"
1 Peter S. Mazinger wrote:
2 > On Tue, 8 Jun 2004, paul k wrote:
3 >
4 >
5 >>Peter S. Mazinger wrote:
6 >>
7 >>
8 >>>Hello!
9 >>>
10 >>>getent is used by ebuild.sh to add user/group, but this is not
11 >>>present in uclibc, how and where should this be changed to something
12 >>>trivial (grep/echo)
13 >>>
14 >>
15 >>Im curious how you would use grep/echo to fetch user information from
16 >>distributed systems like nis/ldap/sql made available to getent() through
17 >>the NSS mechanism.
18 >
19 >
20 > uclibc supports only passwd/shadow, nothing else, not db,ldap,nis, no
21 > pluggable ala /etc/nsswitch.conf.
22 Should be easy to resolve then:
23 -------------------------------
24 #!/bin/bash
25 case $1 in
26 passwd)
27 cat /etc/passwd
28 ;;
29 group)
30 cat /etc/group
31 ;;
32 *)
33 echo "Unknown database: $1"
34 ;;
35 esac
36 -------------------------------
37 save as getent and put it in you path ,-)
38
39
40 greetings
41 Paul
42
43 --
44 gentoo-embedded@g.o mailing list