From 997f3a655ad1ef05e8bd6576fd161c03b5b6a5b2 Mon Sep 17 00:00:00 2001
From: Julian Rother <julianr@fsmpi.rwth-aachen.de>
Date: Tue, 23 Feb 2021 23:45:49 +0100
Subject: [PATCH] Removed User.ldif

---
 uffd/user/models.py           | 4 ----
 uffd/user/templates/user.html | 2 +-
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/uffd/user/models.py b/uffd/user/models.py
index 14435f00..40a829c3 100644
--- a/uffd/user/models.py
+++ b/uffd/user/models.py
@@ -59,10 +59,6 @@ class BaseUser(ldap.Model):
 		self.pwhash = hashed(HASHED_SALTED_SHA512, value)
 	password = property(fset=password)
 
-	@property
-	def ldif(self):
-		return '<none yet>' # TODO: Do we really need this?!
-
 	def is_in_group(self, name):
 		if not name:
 			return True
diff --git a/uffd/user/templates/user.html b/uffd/user/templates/user.html
index ac7f3bf7..e289ea8d 100644
--- a/uffd/user/templates/user.html
+++ b/uffd/user/templates/user.html
@@ -129,7 +129,7 @@
 		</div>
 		<div class="tab-pane fade" id="ldif" role="tabpanel" aria-labelledby="ldif-tab">
 			<div class="form-group col">
-				<pre>{{ user.ldif }}</pre>
+				<pre>{{ '<not available>'|e }}</pre>
 			</div>
 		</div>
 	</div>
-- 
GitLab