Displaying 1 result from an estimated 1 matches for "net_set_machine_opsystem".
2007 Feb 12
3
Autogenerating of operatingSystem and operatingSystemVersion attributes in AD
...en_mod(ads_s, new_dn, mods);
done:
@@ -1065,6 +1064,62 @@
}
/*******************************************************************
+ Set a machines operatingSystem and operatingSystemVersion attributes
+ ********************************************************************/
+
+static ADS_STATUS net_set_machine_opsystem(TALLOC_CTX *ctx, ADS_STRUCT
*ads_s )
+{
+ ADS_STATUS status = ADS_ERROR(LDAP_SERVER_DOWN);
+ char *new_dn;
+ ADS_MODLIST mods;
+ char *psp;
+ LDAPMessage *res = NULL;
+ char *dn_string = NULL;
+ const char *machine_name = global_myname();
+ int count;
+
+ if ( !machine_name ) {
+ return ADS_ERROR...