Home
last modified time | relevance | path

Searched refs:share_dn (Results 1 – 1 of 1) sorted by relevance

/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_ads.c838 char *share_dn; in smb_ads_get_sharedn() local
856 rc = asprintf(&share_dn, "cn=%s,%s,%s", sharename, in smb_ads_get_sharedn()
859 rc = asprintf(&share_dn, "cn=%s,%s", sharename, in smb_ads_get_sharedn()
862 return ((rc == -1) ? NULL : share_dn); in smb_ads_get_sharedn()
889 char *share_dn; in smb_ads_add_share() local
893 if ((share_dn = smb_ads_get_sharedn(adsShareName, adsContainer, in smb_ads_add_share()
898 free(share_dn); in smb_ads_add_share()
910 if ((ret = ldap_add_s(ah->ld, share_dn, attrs)) != LDAP_SUCCESS) { in smb_ads_add_share()
914 adsShareName, share_dn); in smb_ads_add_share()
918 " AD: %s (%s).\n", adsShareName, share_dn, in smb_ads_add_share()
[all …]