search for: ads_err_ok

Displaying 4 results from an estimated 4 matches for "ads_err_ok".

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
2007 Feb 12
3
Autogenerating of operatingSystem and operatingSystemVersion attributes in AD
...*psp; + LDAPMessage *res = NULL; + char *dn_string = NULL; + const char *machine_name = global_myname(); + int count; + + if ( !machine_name ) { + return ADS_ERROR(LDAP_NO_MEMORY); + } + + /* Find our DN */ + + status = ads_find_machine_acct(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_machi...
2020 Jul 01
3
help for join AD domain failure troubleshooting
...showed failed while searching a wellknownobject, and Samba source code shows: if (asprintf(&base, "<WKGUID=%s,%s>", wknguid, ads->config.bind_path ) == -1) { DEBUG(1, ("asprintf failed!\n")); return NULL; } status = ads_search_dn(ads, &res, base, attrs); if (!ADS_ERR_OK(status)) { DEBUG(1,("Failed while searching for: %s\n", base)); goto out; } It should fail at line: status = ads_search_dn(ads, &res, base, attrs); However, if I search by ldapsearch command, it works well: """ [root at monitor-test-12 ~]# ldapsearch -H ldap://pd11sc...
2020 Jul 01
0
help for join AD domain failure troubleshooting
...nownobject, and Samba source code shows: > > if (asprintf(&base, "<WKGUID=%s,%s>", wknguid, ads->config.bind_path ) == -1) { > DEBUG(1, ("asprintf failed!\n")); > return NULL; > } > > status = ads_search_dn(ads, &res, base, attrs); > if (!ADS_ERR_OK(status)) { > DEBUG(1,("Failed while searching for: %s\n", base)); > goto out; > } > > It should fail at line: status = ads_search_dn(ads, &res, base, attrs); > > However, if I search by ldapsearch command, it works well: > > """ > [root at...