]> andersk Git - moira.git/commitdiff
Fix setting of mailroutingaddress.
authorzacheiss <zacheiss>
Tue, 3 Mar 2009 04:59:22 +0000 (04:59 +0000)
committerzacheiss <zacheiss>
Tue, 3 Mar 2009 04:59:22 +0000 (04:59 +0000)
incremental/ldap/winad.c

index b7cd2770fc5c917ec24947f68066b8f0e7b262b4..adac4777656cdd4b84eb153c702d66a1a6395748 100755 (executable)
@@ -5278,6 +5278,19 @@ int user_create(int ac, char **av, void *ptr)
       
       if (!(rc = mr_query("get_pobox", 1, argv, save_query_info, save_argv)))
        {
+          n = 0;
+         ADD_ATTR("mailRoutingAddress", mail_routing_v, LDAP_MOD_REPLACE);
+         mods[n] = NULL;
+         rc = ldap_modify_s((LDAP *)call_args[0], new_dn, mods);
+          
+         if (rc == LDAP_ALREADY_EXISTS || rc == LDAP_TYPE_OR_VALUE_EXISTS)
+            rc = LDAP_SUCCESS;
+
+         if(rc)
+            com_err(whoami, 0,
+                    "Unable to set the mailRoutingAddress for %s : %s",
+                    user_name, ldap_err2string(rc));
+
          p = strdup(save_argv[3]);
          
          if((c = strchr(p, ',')) != NULL) {
This page took 0.040812 seconds and 5 git commands to generate.