[sysadmin-bin] The FreeIPA release we are running does not allow anonymous binds
- From: Andrea Veri <av src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] The FreeIPA release we are running does not allow anonymous binds
- Date: Fri, 3 Jul 2015 14:38:24 +0000 (UTC)
commit a7e535e73e6c494e175f37c3e0ab88159bd0ab6c
Author: Andrea Veri <av gnome org>
Date: Fri Jul 3 16:38:18 2015 +0200
The FreeIPA release we are running does not allow anonymous binds
create-homedirs | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/create-homedirs b/create-homedirs
index 77f5172..ad1af52 100755
--- a/create-homedirs
+++ b/create-homedirs
@@ -6,15 +6,16 @@ import sys
import shutil
import subprocess
+execfile('/home/admin/secret/freeipa')
+
## first you must open a connection to the server
try:
- l = ldap.open("account.gnome.org")
- l.simple_bind("cn=Directory Manager")
+ l = ldap.open('view.gnome.org')
+ l.simple_bind("cn=Directory Manager", ldap_password)
except ldap.LDAPError, e:
- print e
+ print >>sys.stderr, e
sys.exit(1)
-
def get_uids_from_group(group):
filter = "(cn=%s)" % group
try:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]