Topic: Error
After installing iRedMail:
ldap.INVALID_CREDENTIALS at /
{'info': '', 'desc': 'Invalid credentials'}
Python /usr/lib/python2.4/site-packages/ldap/ldapobject.py in _ldap_call, line 93
Web GET http://192.168.5.18/iredadmin/
Traceback (innermost first)
* /usr/lib/python2.4/site-packages/ldap/ldapobject.py in _ldap_call
86. repr(args),repr(kwargs)
87. ))
88. if self._trace_level>=3:
89. traceback.print_stack(limit=self._trace_stack_limit,file=self._trace_file)
90. self._ldap_object_lock.acquire()
91. try:
92. try:
93. result = func(*args,**kwargs) ...
94. finally:
95. self._ldap_object_lock.release()
96. except LDAPError,e:
97. if __debug__ and self._trace_level>=2:
98. self._trace_file.write('=> LDAPError - %s: %s\n' % (e.__class__.__name__,str(e)))
99. raise
▶ Local vars
Variable Value
args
(1, 1, -1)
e
<ldap.INVALID_CREDENTIALS instance at 0xb5b861ec>
func
<built-in method result3 of LDAP object at 0xb5c138c0>
kwargs
{}
self
<ldap.ldapobject.SimpleLDAPObject instance at 0xb5b8afec>
* /usr/lib/python2.4/site-packages/ldap/ldapobject.py in result3
407. def result2(self,msgid=_ldap.RES_ANY,all=1,timeout=None):
408. res_type, res_data, res_msgid, srv_ctrls = self.result3(msgid,all,timeout)
409. return res_type, res_data, res_msgid
410.
411. def result3(self,msgid=_ldap.RES_ANY,all=1,timeout=None):
412. if timeout is None:
413. timeout = self.timeout
414. rtype, rdata, rmsgid, serverctrls = self._ldap_call(self._l.result3,msgid,all,timeout) ...
415. decoded_serverctrls = DecodeControlTuples(serverctrls)
416. return rtype, rdata, rmsgid, decoded_serverctrls
417.
418. def search_ext(self,base,scope,filterstr='(objectClass=*)',attrlist=None,attrsonly=0,serverctrls=None,clientctrls=None,timeout=-1,sizelimit=0):
419. """
420. search(base, scope [,filterstr='(objectClass=*)' [,attrlist=None [,attrsonly=0]]]) -> int
▶ Local vars
Variable Value
all
1
msgid
1
self
<ldap.ldapobject.SimpleLDAPObject instance at 0xb5b8afec>
timeout
-1
* /usr/lib/python2.4/site-packages/ldap/ldapobject.py in result2
401. If a timeout occurs, a TIMEOUT exception is raised, unless
402. polling (timeout = 0), in which case (None, None) is returned.
403. """
404. res_type,res_data,res_msgid = self.result2(msgid,all,timeout)
405. return res_type,res_data
406.
407. def result2(self,msgid=_ldap.RES_ANY,all=1,timeout=None):
408. res_type, res_data, res_msgid, srv_ctrls = self.result3(msgid,all,timeout) ...
409. return res_type, res_data, res_msgid
410.
411. def result3(self,msgid=_ldap.RES_ANY,all=1,timeout=None):
412. if timeout is None:
413. timeout = self.timeout
414. rtype, rdata, rmsgid, serverctrls = self._ldap_call(self._l.result3,msgid,all,timeout)
▶ Local vars
Variable Value
all
1
msgid
1
self
<ldap.ldapobject.SimpleLDAPObject instance at 0xb5b8afec>
timeout
-1
* /usr/lib/python2.4/site-packages/ldap/ldapobject.py in result
397. indefinitely if timeout is negative. A timeout of 0 will effect
398. a poll. The timeout can be expressed as a floating-point value.
399. If timeout is None the default in self.timeout is used.
400.
401. If a timeout occurs, a TIMEOUT exception is raised, unless
402. polling (timeout = 0), in which case (None, None) is returned.
403. """
404. res_type,res_data,res_msgid = self.result2(msgid,all,timeout) ...
405. return res_type,res_data
406.
407. def result2(self,msgid=_ldap.RES_ANY,all=1,timeout=None):
408. res_type, res_data, res_msgid, srv_ctrls = self.result3(msgid,all,timeout)
409. return res_type, res_data, res_msgid
410.
▶ Local vars
Variable Value
all
1
msgid
1
self
<ldap.ldapobject.SimpleLDAPObject instance at 0xb5b8afec>
timeout
-1
* /usr/lib/python2.4/site-packages/ldap/ldapobject.py in bind_s
182. return self.simple_bind(who,cred)
183.
184. def bind_s(self,who,cred,method=ldap.AUTH_SIMPLE):
185. """
186. bind_s(who, cred, method) -> None
187. """
188. msgid = self.bind(who,cred,method)
189. return self.result(msgid,all=1,timeout=self.timeout) ...
190.
191. def sasl_interactive_bind_s(self,who,auth,serverctrls=None,clientctrls=None,sasl_flags=ldap.SASL_QUIET):
192. """
193. sasl_interactive_bind_s(who, auth) -> None
194. """
195. return self._ldap_call(self._l.sasl_interactive_bind_s,who,auth,EncodeControlTuples(serverctrls),EncodeControlTuples(clientctrls),sasl_flags)
▶ Local vars
Variable Value
cred
'passwd'
method
128
msgid
1
self
<ldap.ldapobject.SimpleLDAPObject instance at 0xb5b8afec>
who
'cn=Manager,dc=vincenterodelf,dc=com'
* /var/www/iredadmin/libs/ldaplib/core.py in __init__
59. if use_tls:
60. try:
61. self.conn.start_tls_s()
62. except ldap.LDAPError, e:
63. return (False, ldaputils.getExceptionDesc(e))
64.
65. # synchronous bind.
66. self.conn.bind_s(cfg.ldap.get('bind_dn'), cfg.ldap.get('bind_pw')) ...
67.
68. def __del__(self):
69. self.conn.unbind()
70.
71. def change_passwd(self, dn, cur_passwd, newpw):
72. dn = ldap.filter.escape_filter_chars(dn)
▶ Local vars
Variable Value
app
<web.application.application instance at 0xb5d006ac>
pro_version
3
self
<libs.ldaplib.core.LDAPDecorators instance at 0xb5b8aeac>
session
<Storage {'username': None, 'lang': 'en_US', 'pagesizelimit': 30, 'ip': u'192.168.5.12', 'failedTimes': 0, 'logged': False, 'webmaster': 'michaelbibby@gmail.com', 'session_id': 'acbc98d0b697104db2d4777abe88e68363d84dec'}>
settings
{}
use_tls
0
* /var/www/iredadmin/libs/ldaplib/domain.py in ?
26. import sys
27. import ldap
28. import web
29. from libs.ldaplib import core, attrs, iredldif, ldaputils, deltree
30.
31. cfg = web.iredconfig
32. session = web.config.get('_session')
33. LDAPDecorators = core.LDAPDecorators() ...
34.
35. class Domain(core.LDAPWrap):
36. def __del__(self):
37. pass
38.
39. @LDAPDecorators.check_global_admin
▶ Local vars
Variable Value
__builtins__
{'ArithmeticError': <class exceptions.ArithmeticError at 0xb5ec698c>, 'AssertionError': <class exceptions.AssertionError at 0xb5ec689c>, 'AttributeError': <class exceptions.AttributeError at 0xb5ec674c>, 'DeprecationWarning': <class exceptions.DeprecationWarning at 0xb5ec6ecc>, 'EOFError': <class exceptions.EOFError at 0xb5ec653c>, 'Ellipsis': Ellipsis, 'EnvironmentError': <class exceptions.EnvironmentError at 0xb5ec641c>, 'Exception': <class exceptions.Exception at 0xb5ec626c>, 'False': False, 'FloatingPointError': <class exceptions.FloatingPointError at 0xb5ec6aac>, 'FutureWarning': <class exceptions.FutureWarning at 0xb5edb02c>, 'IOError': <class exceptions.IOError at 0xb5ec647c>, 'ImportError': <class exceptions.ImportError at 0xb5ec63ec>, 'IndentationError': <class exceptions.IndentationError at 0xb5ec680c>, 'IndexError': <class exceptions.IndexError at 0xb5ec68fc>, 'KeyError': <class exceptions.KeyError at 0xb5ec695c>, 'KeyboardInterrupt': <class exceptions.KeyboardInterrupt at 0xb5ec638c>, 'LookupError': <class exceptions.LookupError at 0xb5ec68cc>, 'MemoryError': <class exceptions.MemoryError at 0xb5ec6e0c>, 'NameError': <class exceptions.NameError at 0xb5ec665c>, 'None': None, 'NotImplemented': NotImplemented, 'NotImplementedError': <class exceptions.NotImplementedError at 0xb5ec65cc>, 'OSError': <class exceptions.OSError at 0xb5ec64dc>, 'OverflowError': <class exceptions.OverflowError at 0xb5ec69bc>, 'OverflowWarning': <class exceptions.OverflowWarning at 0xb5ec6f8c>, 'PendingDeprecationWarning': <class exceptions.PendingDeprecationWarning at 0xb5ec6f2c>, 'ReferenceError': <class exceptions.ReferenceError at 0xb5ec6dac>, 'RuntimeError': <class exceptions.RuntimeError at 0xb5ec656c>, 'RuntimeWarning': <class exceptions.RuntimeWarning at 0xb5ec6fbc>, 'StandardError': <class exceptions.StandardError at 0xb5ec62cc>, 'StopIteration': <class exceptions.StopIteration at 0xb5ec629c>, 'SyntaxError': <class exceptions.SyntaxError at 0xb5ec677c>, 'SyntaxWarning': <class exceptions.SyntaxWarning at 0xb5ec6f5c>, 'SystemError': <class exceptions.SystemError at 0xb5ec6ddc>, 'SystemExit': <class exceptions.SystemExit at 0xb5ec632c>, 'TabError': <class exceptions.TabError at 0xb5ec683c>, 'True': True, 'TypeError': <class exceptions.TypeError at 0xb5ec62fc>, 'UnboundLocalError': <class exceptions.UnboundLocalError at 0xb5ec66bc>, 'UnicodeDecodeError': <class exceptions.UnicodeDecodeError at 0xb5ec6cbc>, 'UnicodeEncodeError': <class exceptions.UnicodeEncodeError at 0xb5ec6bfc>, 'UnicodeError': <class exceptions.UnicodeError at 0xb5ec6b6c>, 'UnicodeTranslateError': <class exceptions.UnicodeTranslateError at 0xb5ec6d4c>, 'UserWarning': <class exceptions.UserWarning at 0xb5ec6e6c>, 'ValueError': <class exceptions.ValueError at 0xb5ec6b0c>, 'Warning': <class exceptions.Warning at 0xb5ec6e3c>, 'ZeroDivisionError': <class exceptions.ZeroDivisionError at 0xb5ec6a1c>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__name__': '__builtin__', 'abs': <built-in function abs>, 'apply': <built-in function apply>, 'basestring': <type 'basestring'>, 'bool': <type 'bool'>, 'buffer': <type 'buffer'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <type 'classmethod'>, 'cmp': <built-in function cmp>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'complex': <type 'complex'>, 'copyright': Copyright (c) 2001-2006 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <type 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'eval': <built-in function eval>, 'execfile': <built-in function execfile>, 'exit': 'Use Ctrl-D (i.e. EOF) to exit.', 'file': <type 'file'>, 'filter': <built-in function filter>, 'float': <type 'float'>, 'frozenset': <type 'frozenset'>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <type 'int'>, 'intern': <built-in function intern>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': Type license() to see the full license text, 'list': <type 'list'>, 'locals': <built-in function locals>, 'long': <type 'long'>, 'map': <built-in function map>, 'max': <built-in function max>, 'min': <built-in function min>, 'object': <type 'object'>, 'oct': <built-in function oct>, 'open': <type 'file'>, 'ord': <built-in function ord>, 'pow': <built-in function pow>, 'property': <type 'property'>, 'quit': 'Use Ctrl-D (i.e. EOF) to exit.', 'range': <built-in function range>, 'raw_input': <built-in function raw_input>, 'reduce': <built-in function reduce>, 'reload': <built-in function reload>, 'repr': <built-in function repr>, 'reversed': <type 'reversed'>, 'round': <built-in function round>, 'set': <type 'set'>, 'setattr': <built-in function setattr>, 'slice': <type 'slice'>, 'sorted': <built-in function sorted>, 'staticmethod': <type 'staticmethod'>, 'str': <type 'str'>, 'sum': <built-in function sum>, 'super': <type 'super'>, 'tuple': <type 'tuple'>, 'type': <type 'type'>, 'unichr': <built-in function unichr>, 'unicode': <type 'unicode'>, 'vars': <built-in function vars>, 'xrange': <type 'xrange'>, 'zip': <built-in function zip>}
__doc__
None
__file__
None
__name__
None
attrs
None
cfg
None
core
None
deltree
None
iredldif
None
ldap
None
ldaputils
None
session
None
sys
None
web
None
* /var/www/iredadmin/controllers/ldap/basic.py in ?
21. #
22. # You should have received a copy of the GNU General Public License
23. # along with iRedAdmin-OSE. If not, see <http://www.gnu.org/licenses/>.
24. #---------------------------------------------------------------------
25.
26. import web, sys
27. from libs import __version__, __url_iredadmin_lastest__, iredutils
28. from libs.ldaplib import core, auth, domain, ldaputils ...
29. from controllers.ldap import base
30.
31. cfg = web.iredconfig
32. session = web.config.get('_session')
33. render = web.render
34.
▶ Local vars
Variable Value
__builtins__
{'ArithmeticError': <class exceptions.ArithmeticError at 0xb5ec698c>, 'AssertionError': <class exceptions.AssertionError at 0xb5ec689c>, 'AttributeError': <class exceptions.AttributeError at 0xb5ec674c>, 'DeprecationWarning': <class exceptions.DeprecationWarning at 0xb5ec6ecc>, 'EOFError': <class exceptions.EOFError at 0xb5ec653c>, 'Ellipsis': Ellipsis, 'EnvironmentError': <class exceptions.EnvironmentError at 0xb5ec641c>, 'Exception': <class exceptions.Exception at 0xb5ec626c>, 'False': False, 'FloatingPointError': <class exceptions.FloatingPointError at 0xb5ec6aac>, 'FutureWarning': <class exceptions.FutureWarning at 0xb5edb02c>, 'IOError': <class exceptions.IOError at 0xb5ec647c>, 'ImportError': <class exceptions.ImportError at 0xb5ec63ec>, 'IndentationError': <class exceptions.IndentationError at 0xb5ec680c>, 'IndexError': <class exceptions.IndexError at 0xb5ec68fc>, 'KeyError': <class exceptions.KeyError at 0xb5ec695c>, 'KeyboardInterrupt': <class exceptions.KeyboardInterrupt at 0xb5ec638c>, 'LookupError': <class exceptions.LookupError at 0xb5ec68cc>, 'MemoryError': <class exceptions.MemoryError at 0xb5ec6e0c>, 'NameError': <class exceptions.NameError at 0xb5ec665c>, 'None': None, 'NotImplemented': NotImplemented, 'NotImplementedError': <class exceptions.NotImplementedError at 0xb5ec65cc>, 'OSError': <class exceptions.OSError at 0xb5ec64dc>, 'OverflowError': <class exceptions.OverflowError at 0xb5ec69bc>, 'OverflowWarning': <class exceptions.OverflowWarning at 0xb5ec6f8c>, 'PendingDeprecationWarning': <class exceptions.PendingDeprecationWarning at 0xb5ec6f2c>, 'ReferenceError': <class exceptions.ReferenceError at 0xb5ec6dac>, 'RuntimeError': <class exceptions.RuntimeError at 0xb5ec656c>, 'RuntimeWarning': <class exceptions.RuntimeWarning at 0xb5ec6fbc>, 'StandardError': <class exceptions.StandardError at 0xb5ec62cc>, 'StopIteration': <class exceptions.StopIteration at 0xb5ec629c>, 'SyntaxError': <class exceptions.SyntaxError at 0xb5ec677c>, 'SyntaxWarning': <class exceptions.SyntaxWarning at 0xb5ec6f5c>, 'SystemError': <class exceptions.SystemError at 0xb5ec6ddc>, 'SystemExit': <class exceptions.SystemExit at 0xb5ec632c>, 'TabError': <class exceptions.TabError at 0xb5ec683c>, 'True': True, 'TypeError': <class exceptions.TypeError at 0xb5ec62fc>, 'UnboundLocalError': <class exceptions.UnboundLocalError at 0xb5ec66bc>, 'UnicodeDecodeError': <class exceptions.UnicodeDecodeError at 0xb5ec6cbc>, 'UnicodeEncodeError': <class exceptions.UnicodeEncodeError at 0xb5ec6bfc>, 'UnicodeError': <class exceptions.UnicodeError at 0xb5ec6b6c>, 'UnicodeTranslateError': <class exceptions.UnicodeTranslateError at 0xb5ec6d4c>, 'UserWarning': <class exceptions.UserWarning at 0xb5ec6e6c>, 'ValueError': <class exceptions.ValueError at 0xb5ec6b0c>, 'Warning': <class exceptions.Warning at 0xb5ec6e3c>, 'ZeroDivisionError': <class exceptions.ZeroDivisionError at 0xb5ec6a1c>, '__debug__': True, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", '__import__': <built-in function __import__>, '__name__': '__builtin__', 'abs': <built-in function abs>, 'apply': <built-in function apply>, 'basestring': <type 'basestring'>, 'bool': <type 'bool'>, 'buffer': <type 'buffer'>, 'callable': <built-in function callable>, 'chr': <built-in function chr>, 'classmethod': <type 'classmethod'>, 'cmp': <built-in function cmp>, 'coerce': <built-in function coerce>, 'compile': <built-in function compile>, 'complex': <type 'complex'>, 'copyright': Copyright (c) 2001-2006 Python Software Foundation. All Rights Reserved. Copyright (c) 2000 BeOpen.com. All Rights Reserved. Copyright (c) 1995-2001 Corporation for National Research Initiatives. All Rights Reserved. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam. All Rights Reserved., 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands for supporting Python development. See www.python.org for more information., 'delattr': <built-in function delattr>, 'dict': <type 'dict'>, 'dir': <built-in function dir>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'eval': <built-in function eval>, 'execfile': <built-in function execfile>, 'exit': 'Use Ctrl-D (i.e. EOF) to exit.', 'file': <type 'file'>, 'filter': <built-in function filter>, 'float': <type 'float'>, 'frozenset': <type 'frozenset'>, 'getattr': <built-in function getattr>, 'globals': <built-in function globals>, 'hasattr': <built-in function hasattr>, 'hash': <built-in function hash>, 'help': Type help() for interactive help, or help(object) for help about object., 'hex': <built-in function hex>, 'id': <built-in function id>, 'input': <built-in function input>, 'int': <type 'int'>, 'intern': <built-in function intern>, 'isinstance': <built-in function isinstance>, 'issubclass': <built-in function issubclass>, 'iter': <built-in function iter>, 'len': <built-in function len>, 'license': Type license() to see the full license text, 'list': <type 'list'>, 'locals': <built-in function locals>, 'long': <type 'long'>, 'map': <built-in function map>, 'max': <built-in function max>, 'min': <built-in function min>, 'object': <type 'object'>, 'oct': <built-in function oct>, 'open': <type 'file'>, 'ord': <built-in function ord>, 'pow': <built-in function pow>, 'property': <type 'property'>, 'quit': 'Use Ctrl-D (i.e. EOF) to exit.', 'range': <built-in function range>, 'raw_input': <built-in function raw_input>, 'reduce': <built-in function reduce>, 'reload': <built-in function reload>, 'repr': <built-in function repr>, 'reversed': <type 'reversed'>, 'round': <built-in function round>, 'set': <type 'set'>, 'setattr': <built-in function setattr>, 'slice': <type 'slice'>, 'sorted': <built-in function sorted>, 'staticmethod': <type 'staticmethod'>, 'str': <type 'str'>, 'sum': <built-in function sum>, 'super': <type 'super'>, 'tuple': <type 'tuple'>, 'type': <type 'type'>, 'unichr': <built-in function unichr>, 'unicode': <type 'unicode'>, 'vars': <built-in function vars>, 'xrange': <type 'xrange'>, 'zip': <built-in function zip>}
__doc__
None
__file__
None
__name__
None
__url_iredadmin_lastest__
None
__version__
None
iredutils
None
sys
None
web
None
* /usr/lib/python2.4/site-packages/web.py-0.33-py2.4.egg/web/application.py in _delegate
400. x = web.ctx.env.get('QUERY_STRING', '')
401. if x:
402. url += '?' + x
403. raise web.redirect(url)
404. elif '.' in f:
405. x = f.split('.')
406. mod, cls = '.'.join(x[:-1]), x[-1]
407. mod = __import__(mod, globals(), locals(), [""]) ...
408. cls = getattr(mod, cls)
409. else:
410. cls = fvars[f]
411. return handle_class(cls)
412. elif hasattr(f, '__call__'):
413. return f()
▶ Local vars
Variable Value
args
[]
cls
'login'
f
'controllers.ldap.basic.login'
fvars
[could not display: <TemplateNotFound: __repr__.html>]
handle_class
<function handle_class at 0xb5c3e6f4>
is_class
<function is_class at 0xb5c3e6bc>
mod
'controllers.ldap.basic'
self
<web.application.application instance at 0xb5d006ac>
x
['controllers', 'ldap', 'basic', 'login']
* /usr/lib/python2.4/site-packages/web.py-0.33-py2.4.egg/web/application.py in handle
225.
226. def browser(self):
227. import browser
228. return browser.AppBrowser(self)
229.
230. def handle(self):
231. fn, args = self._match(self.mapping, web.ctx.path)
232. return self._delegate(fn, self.fvars, args) ...
233.
234. def handle_with_processors(self):
235. def process(processors):
236. try:
237. if processors:
238. p, processors = processors[0], processors[1:]
▶ Local vars
Variable Value
args
[]
fn
'controllers.ldap.basic.login'
self
<web.application.application instance at 0xb5d006ac>
* /usr/lib/python2.4/site-packages/web.py-0.33-py2.4.egg/web/application.py in process
234. def handle_with_processors(self):
235. def process(processors):
236. try:
237. if processors:
238. p, processors = processors[0], processors[1:]
239. return p(lambda: process(processors))
240. else:
241. return self.handle() ...
242. except web.HTTPError:
243. raise
244. except (KeyboardInterrupt, SystemExit):
245. raise
246. except:
247. print >> web.debug, traceback.format_exc()
▶ Local vars
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.