]> code.citadel.org Git - citadel.git/blobdiff - citadel/user_ops.c
* Prepped portions of the code for imminent merge of LDAP auth module.
[citadel.git] / citadel / user_ops.c
index 9c0952cce7602dde0db91f9558690f88da7dcee8..60bce3fcc6bf7b19b79be9d62b1aac1bab502027 100644 (file)
@@ -541,6 +541,13 @@ int CtdlLoginExistingUser(char *authname, char *trythisname)
 
        }
 
+#ifdef HAVE_LDAP
+       else if (config.c_auth_mode == AUTHMODE_LDAP) {
+
+               /* LDAP auth mode FIXME_LDAP */
+       }
+#endif
+
        else {
                /* native auth mode */
 
@@ -728,9 +735,7 @@ void logout(void)
                purge_user(CCC->user.fullname);
 
        /* Free any output buffers */
-       if (CCC->output_buffer != NULL) {
-               unbuffer_output();
-       }
+       unbuffer_output();
 }
 
 /*
@@ -862,6 +867,13 @@ int CtdlTryPassword(char *password)
                }
        }
 
+#ifdef HAVE_LDAP
+       else if (config.c_auth_mode == AUTHMODE_LDAP) {
+
+               /* LDAP auth mode FIXME_LDAP */
+       }
+#endif
+
        else {
 
                /* native auth mode */
@@ -1069,6 +1081,8 @@ int create_user(char *newusername, int become_user)
                        return (ERROR + NO_SUCH_USER);
                }
        }
+
+       /* FIXME_LDAP put something here */
        
        if ((retval = internal_create_user(username, &usbuf, uid)) != 0)
                return retval;