---
name: "radcli_dict_lookup_oid"
section: "3"
platform: "linux"
package: "radcli"
version: "2.0.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/radcli_dict_lookup_oid"
---

# radcli\_dict\_lookup\_oid(3)

Look up a dictionary attribute by RFC 6929 §2.7 OID notation.

## NAME

radcli\_dict\_lookup\_oid - Look up a dictionary attribute by RFC 6929 §2.7 OID notation.

## SYNOPSIS

```
#include <radcli/>

const radcli_attr_def * radcli_dict_lookup_oid(
    const radcli_ctx  *ctx,
    const char        *oid
);
```

## DESCRIPTION

Accepts a standard attribute as a single component ("1" for User-Name) or a vendor-specific attribute as "26.\<vendor-id\>.\<vendor-type\>" (e.g. "26.311.11"). Longer forms naming an RFC 6929 extended, long-extended, or TLV-nested attribute parse without error but currently match nothing: the bundled dictionary carries no RFC 6929 extended/long-extended/TLV-nested attributes yet.

## PARAMETERS

- **ctx**

  a context with a dictionary loaded.

- **oid**

  the dot-separated OID text.

## RETURN VALUE

the attribute definition, or NULL if the OID is malformed or matches no loaded attribute.

## SEE ALSO

[*radcli\_attr\_def\_name*(3)](/radcli_attr_def_name/3.md), [*radcli\_attr\_def\_oid*(3)](/radcli_attr_def_oid/3.md), [*radcli\_attr\_def\_type*(3)](/radcli_attr_def_type/3.md), [*radcli\_dict\_lookup*(3)](/radcli_dict_lookup/3.md), [*radcli\_dict\_lookup\_num*(3)](/radcli_dict_lookup_num/3.md), [*radcli\_dict\_lookup\_value*(3)](/radcli_dict_lookup_value/3.md)
