Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

databases use different names than standard #9

Open
smemsh opened this issue Aug 29, 2020 · 0 comments
Open

databases use different names than standard #9

smemsh opened this issue Aug 29, 2020 · 0 comments

Comments

@smemsh
Copy link

smemsh commented Aug 29, 2020

from the command line utility provided by libc, getent --help:

Supported databases:
ahosts ahostsv4 ahostsv6 aliases ethers group gshadow hosts initgroups
netgroup networks passwd protocols rpc services shadow

many of these are different names than the ones found in this library:

__all__ = (
    'alias', 'group', 'host', 'network', 'passwd', 'proto', 'rpc', 'service',
    'shadow', 'netgroup'
)

for consistency, it would be good if these used the same database names as the library itself. I found the remapping of hosts -> host and services -> service particularly confusing since they don't even match up to the name in /etc/ when nsswitch is using files as the backend.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant