Opened 13 months ago

Closed 13 months ago

Last modified 12 months ago

#11306 closed defect (duplicate)

[Patch] make sure scope is passed as an int

Reported by: korn Owned by: sandinak
Priority: normal Component: DirectoryAuthPlugin
Severity: normal Keywords:
Cc: Trac Release:


-        res = d.search_s(basedn.encode(self.dir_charset), scope, lfilter, attrs)
+        res = d.search_s(basedn.encode(self.dir_charset), int(scope), lfilter, attrs)

If I specified scope in the config, the above line threw an error ("integer expected"). This trivial patch seems to fix it.

Attachments (0)

Change History (2)

comment:1 Changed 13 months ago by korn

  • Resolution set to duplicate
  • Status changed from new to closed

Sorry, duplicate of #10581.

comment:2 Changed 12 months ago by rjollos

Well, it should have been fixed a long time ago anyway. I'll push the change again now.

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.