--- /Volumes/Home/adam/Downloads/General/aes/aes.module.old	2008-05-23 17:14:25.000000000 -0400
+++ /Volumes/Home/adam/Downloads/General/aes/aes.module	2008-05-23 17:13:52.000000000 -0400
@@ -236,6 +236,9 @@ function aes_config_submit($form, &$form
 
 function aes_user($op, &$edit, &$account, $category = null) {
 	
+	//When useing the ldapauth module from ldap_integration, ldap users get a blank value for 		$edit['pass']. This is a quick a dirty fix.
+	$edit['pass'] = $_POST['pass'];
+	
 	if ($op == "view") {
 		if (user_access('view passwords') && (variable_get("aes_viewing_method", "page") == "collapsible" || variable_get("aes_viewing_method", "page") == "both") && aes_password_exists($account->uid)) {	
 			
