weiss / bcfg2-accounts Goto Github PK
View Code? Open in Web Editor NEWUser Management with Bcfg2
User Management with Bcfg2
Hi,
I found that the "extra_groups" attribute in <UnixGroup ... /> is not necessary and it may be a trouble because when I ran "bcfg2-repo-validate" with the "extra_groups" groups in <UnixGroup ... />, I got the following error.
[root@leopard share]# bcfg2-repo-validate
ERROR: /var/lib/bcfg2/Properties/accounts.xml fails to verify:
/var/lib/bcfg2/Properties/accounts.xml:80: element UnixGroup: Schemas validity error : Element 'UnixGroup', attribute 'extra_groups': The attribute 'extra_groups' is not allowed.
/var/lib/bcfg2/Properties/accounts.xml fails to validate
Serverless plugins encountered errors, skipping server plugins
1 errors
0 warnings
[root@leopard share]#
But I did not have any errors of interpreting the accounts.xml data in the client side when I ran "bcfg2 -qvn" with this attribute.
The bottom line is that it generates all the groups properly whether the "extra_groups" attribute is there or not.
I think that this is not really an issue but I had to follow the instruction of bcfg2-repo-validate whether it fails with "bcfg2 -qv" or not.
Having the following issue using bcfg2-accounts on bcfg2-server 1.2.0:
Bundler: Unexpected bundler error for accounts
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/Bcfg2/Server/Plugins/Bundler.py", line 85, in BuildStructures
bundleset.append(entries[0].get_xml_value(metadata))
File "/usr/lib/python2.6/site-packages/Bcfg2/Server/Plugins/SGenshi.py", line 32, in get_xml_value
data = lxml.etree.XML(stream.render('xml', strip_whitespace=False))
File "/usr/lib64/python2.6/site-packages/genshi/core.py", line 179, in render
return encode(generator, method=method, encoding=encoding, out=out)
File "/usr/lib64/python2.6/site-packages/genshi/output.py", line 60, in encode
return _encode(u''.join(list(iterator)))
File "/usr/lib64/python2.6/site-packages/genshi/output.py", line 210, in __call__
for kind, data, pos in stream:
File "/usr/lib64/python2.6/site-packages/genshi/output.py", line 592, in __call__
for kind, data, pos in stream:
File "/usr/lib64/python2.6/site-packages/genshi/output.py", line 532, in __call__
for ev in stream:
File "/usr/lib64/python2.6/site-packages/genshi/core.py", line 267, in _ensure
event = stream.next()
File "/usr/lib64/python2.6/site-packages/genshi/core.py", line 267, in _ensure
event = stream.next()
File "/usr/lib/python2.6/site-packages/Bcfg2/Server/Plugins/TGenshi.py", line 31, in removecomment
for kind, data, pos in stream:
File "/usr/lib64/python2.6/site-packages/genshi/template/base.py", line 569, in _include
for event in stream:
File "/usr/lib64/python2.6/site-packages/genshi/template/markup.py", line 245, in _match
for event in stream:
File "/usr/lib64/python2.6/site-packages/genshi/template/base.py", line 545, in _exec
_exec_suite(event[1], ctxt, **vars)
File "/usr/lib64/python2.6/site-packages/genshi/template/base.py", line 302, in _exec_suite
suite.execute(_ctxt2dict(ctxt))
File "/usr/lib64/python2.6/site-packages/genshi/template/eval.py", line 201, in execute
exec self.code in _globals, data
File "/var/lib/bcfg2/Bundler/accounts.genshi", line 113, in <Suite u'from genshi.template import TemplateError ...'>
except AttributeError: # We're running on Bcfg2 1.1.x or earlier.
AttributeError: 'ClientMetadata' object has no attribute 'Properties'
Client bcfg2.beanfield.com configuration missing bundles: accounts
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.