No netgroup support
Bug #179919 reported by
Ryan Lovett
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
auth-client-config |
Fix Released
|
Wishlist
|
Jamie Strandboge |
Bug Description
The script does not handle
netgroup: ldap
in /etc/nsswitch.conf via nss_netgroup.
Changed in auth-client-config: | |
status: | In Progress → Incomplete |
Changed in auth-client-config: | |
status: | Incomplete → In Progress |
To post a comment you must log in.
--- auth-client-config- 2007-08-15 09:58:26.000000000 -0700
lines = readFile(orig)
if t == "nss":
pat = re.compile(r"^\s*" + n + ":")
if pat.search(line):
current[ "nss_" + n] = line + "\n"
entries = {}
pat = re.compile(r"^\s*" + t + ":")
if pat.search(line):
for x in self.inDatabase ("nss_" + t, line):
raise accError( "'nss_group' not found") has_key( 'nss_shadow' ):
raise accError( "'nss_shadow' not found") has_key( 'nss_netgroup' ): "'nss_netgroup' not found")
+++ auth-client-config 2008-01-02 11:17:38.000000000 -0800
@@ -118,7 +118,7 @@
for line in lines:
- for n in ['passwd', 'group', 'shadow']:
+ for n in ['passwd', 'group', 'shadow', 'netgroup']:
@@ -626,7 +626,7 @@
def findProfiles(self, lines):
for line in lines:
- for t in ['passwd', 'group', 'shadow']:
+ for t in ['passwd', 'group', 'shadow', 'netgroup']:
@@ -696,6 +696,8 @@
if not self.updates.
+ if not self.updates.
+ raise accError(
@@ -730,7 +732,7 @@
- for t in ['passwd', 'group', 'shadow']:
+ for t in ['passwd', 'group', 'shadow', 'netgroup']:
@@ -756,7 +758,7 @@
for line in lines:
- for t in ['passwd', 'group', 'shadow']:
+ for t in ['passwd', 'group', 'shadow', 'netgroup']:
@@ -770,7 +772,7 @@
- for k in ['passwd', 'group', 'shadow']:
if not entries.has_key(k):
raise accError("'" + os.path. basename( file) + "' doesn't have an entry for '" + k + "'")
+ for k in ['passwd', 'group', 'shadow', 'netgroup']: