Overview#

GetXbyY represents the library functions on that work with the Name Service Switch to query information from various sources which typically include:
  • files
  • DNS
  • NIS
  • NIS+
  • LDAP

LDAP SearchFilters used in getXbyY calls[1]#

NSS NameLDAP SearchFilters
bootparamByName(&(objectClass=bootableDevice)(cn=%s))
etherByHost(&(objectClass=ieee802Device)(cn=%s))
etherByEther(&(objectClass=ieee802Device)(macAddress=%s))
groupByName(&(objectClass=posixGroup)(cn=%s))
groupByGID(&(objectClass=posixGroup)(gidNumber=%ld))
groupByMember(&(objectClass=posixGroup)(memberUid=%s))
hostsByName(&(objectClass=ipHost)(cn=%s))
hostsByAddr(&(objectClass=ipHost)(ipHostNumber=%s))
keyByUID(&(objectClass=nisKeyObject)(uidNumber=%s))
keyByHost(&(objectClass=nisKeyObject)(cn=%s))
netByName(&(objectClass=ipNetwork)(cn=%s))
netByAddr(&(objectClass=ipNetwork)(ipNetworkNumber=%s))
nisgroupMember(membernisnetgroup=%s)
maskByNet(&(objectClass=ipNetwork)(ipNetworkNumber=%s))
printerByName(&(objectClass=sunPrinter)(printer-name=%s))
projectByName(&(objectClass=SolarisProject)(SolarisProjectName=%s))
projectByID(&(objectClass=SolarisProject)(SolarisProjectID=%ld))
protoByName(&(objectClass=ipProtocol)(cn=%s))
protoByNumber(&(objectClass=ipProtocol)(ipProtocolNumber=%d))
passwordByName(&(objectClass=posixAccount)(uid=%s))
passwordByNumber(&(objectClass=posixAccount)(uidNumber=%ld))
rpcByName(&(objectClass=oncRpc)(cn=%s))
rpcByNumber(&(objectClass=oncRpc)(oncRpcNumber=%d))
serverByName(&(objectClass=ipService)(cn=%s))
serverByPort(&(objectClass=ipService)(ipServicePort=%ld))
serverByNameAndProto(&(objectClass=ipService)(cn=%s)(ipServiceProtocol=%s))
specialByNameserver(ipServiceProtocol=%s))
ByPortAndProto(&(objectClass=shadowAccount)(uid=%s))
netgroupByTriple(&(objectClass=nisNetGroup)(nisnetgrouptriple=(%s,%s,%s)))
netgroupByMember(&(objectClass=nisNetGroup)((membernisnetgroup=%s)
authName(&(objectClass=SolarisAuthAttr)(cn=%s))
auditUserByName(&(objectClass=SolarisAuditUser)(uid=%s))
execByName(&(objectClass=SolarisExecAttr)(cn=%s) (SolarisKernelSecurityPolicy=%s)(SolarisProfileType=%s))
execByPolicy(&(objectClass=SolarisExecAttr)(SolarisProfileId=%s) (SolarisKernelSecurityPolicy=%s)(SolarisProfileType=%s))
profileByName(&(objectClass=SolarisProfAttr)(cn=%s))
userByName(&(objectClass=SolarisUserAttr)(uid=%s))

More Information#

There might be more information for this subject on one of the following:

Add new attachment

Only authorized users are allowed to upload new attachments.
« This page (revision-3) was last changed on 13-Aug-2013 11:40 by jim