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

databases use different names than standard #9

@smemsh

Description

@smemsh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions