search for: ads_get_dn

Displaying 3 results from an estimated 3 matches for "ads_get_dn".

2018 May 01
1
cannot compile 4-8-stable or 4-8-test
...NUM_ADS_ERROR_LDAP, rc, 0) ^~ ../libgpo/pygpo.c:348:12: note: in expansion of macro ‘ADS_ERROR’ status = ADS_ERROR(LDAP_NO_RESULTS_RETURNED); ^~~~~~~~~ ../libgpo/pygpo.c:352:7: warning: implicit declaration of function ‘ads_get_dn’; did you mean ‘ads_get_upn’? [-Wimplicit-function-declaration] dn = ads_get_dn(ads, talloc_tos(), res); ^~~~~~~~~~ ads_get_upn ../libgpo/pygpo.c:352:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion] dn = ads_get_dn(ads, talloc_tos(), res); ^...
2007 Feb 12
3
Autogenerating of operatingSystem and operatingSystemVersion attributes in AD
...t(ads_s, (void **)(void *)&res, machine_name); + if (!ADS_ERR_OK(status)) + return status; + + if ( (count = ads_count_replies(ads_s, res)) != 1 ) { + DEBUG(1,("net_set_machine_opsystem: %d entries returned!\n", count)); + return ADS_ERROR(LDAP_NO_MEMORY); + } + + if ( (dn_string = ads_get_dn(ads_s, res)) == NULL ) { + DEBUG(1, ("net_set_machine_opsystem: ads_get_dn returned NULL (malloc failure?)\n")); + goto done; + } + + new_dn = talloc_strdup(ctx, dn_string); + ads_memfree(ads_s, dn_string); + + if (!new_dn) { + return ADS_ERROR(LDAP_NO_MEMORY); + } + + if (!(mods = ad...
2006 Jul 13
2
Kerberos Keytab Code Update in 3.0.23
First thing - I'd like to say a big "THANK YOU" to the developers. I just upgraded to samba-3.0.23 and I've noticed an alarming issue with respect to my configuration. I've been using the built-in keytab management and it looks like the updated code no longer creates the userPrincipal in Active Directory. Whether this is an issue for others or not, it would be nice to have