Lines Matching defs:avpair
2249 smb_ads_getattr(LDAP *ld, LDAPMessage *entry, smb_ads_avpair_t *avpair)
2254 assert(avpair);
2255 avpair->avp_val = NULL;
2256 vals = ldap_get_values(ld, entry, avpair->avp_attr);
2265 avpair->avp_val = strdup(vals[0]);
2266 if (!avpair->avp_val)
2278 smb_ads_avpair_t *avpair)
2330 if (avpair)
2331 rc = smb_ads_getattr(ah->ld, entry, avpair);
2340 * If avpair is NULL, checks the status of the specified computer account.
2342 * If found, the value field of the avpair will be allocated and set. The
2356 smb_ads_lookup_computer_n_attr(smb_ads_handle_t *ah, smb_ads_avpair_t *avpair,
2374 if (avpair) {
2375 if (!avpair->avp_attr)
2378 attrs[1] = avpair->avp_attr;
2397 rc = smb_ads_get_qstat(ah, res, avpair);
2415 smb_ads_avpair_t avpair;
2417 avpair.avp_attr = SMB_ADS_ATTR_DN;
2419 stat = smb_ads_lookup_computer_n_attr(ah, &avpair, LDAP_SCOPE_ONELEVEL,
2424 stat = smb_ads_lookup_computer_n_attr(ah, &avpair,
2429 (void) strlcpy(dn, avpair.avp_val, SMB_DN_MAXLEN);
2430 free(avpair.avp_val);
2483 smb_ads_avpair_t avpair;
2486 avpair.avp_attr = SMB_ADS_ATTR_KVNO;
2487 if (smb_ads_lookup_computer_n_attr(ah, &avpair,
2489 kvno = atoi(avpair.avp_val);
2490 free(avpair.avp_val);