![]() |
Quote:
I run on Windows, so installing LDAP support for PHP was simply an option I chose in the PHP installer (under 'extensions' if I recall correctly). Good luck! |
I am new to vBulletin so this is all new to me. I just installed the LDAP Authentication plugin referenced in this thread and for the most part it seems to be working just fine. However, I have a question. I have logged in as two different users from our LDAP server and vBulletin did indeed allow them to login and did create user accounts for them. However, I noticed that for some reason the "Primary Usergroup" for both of those users was set by default to "Super Moderators". It seems to me that they should be set to "Registered Users" instead.
If I go into the vbulletin admin panel and manually add a user the default settings does seem to be "Registered Users". Is there any way to tell the LDAP Authentication plugin that new users should be created as "Registered Users" instead of "Super Moderators"? Thanks in advance. |
Quote:
If you're using my version, from the post above, you'll need to edit line 193 of the plugin, shown in the snip below. The line that sets the usergroupid to 5 makes the new user a supermoderator. The 'Registered users' group has a usergroupid of 2 (at least it does in mine). So change the 5 to a 2, and that should resolve the issue. The usergroup IDs can be found in Usergroup manager in the admin control panel. PHP Code:
|
Quote:
Code:
$newuser->set('usergroupid', 5); Code:
$newuser->set('usergroupid', 2); Thank you. |
Quote:
Thanks again. |
Quote:
What we really should do is make it a config setting. Not sure when I'll get time to do this.... |
I didn't have any luck with using the original set_userfields method. The aforementioned code had:
PHP Code:
PHP Code:
Has anyone conceived of the idea or attempted setting the username to the LDAP 'displayname' or 'givenname' and 'sn' while allowing the user to both login and authenticate using their LDAP credentials? ie, login as: jdoe, but username is set to John Doe so that all posts, member list, user profile and all show John Doe. My forum is internal, consists only of LDAP users all on the same domain and I've disabled registration since the LDAP auth code can create a new user. I've made a user profile field set to displayname but if I don't have to go through and modify the template to show the displayname userfield in lieu of username, that would be awesome. Unless it's easier now to modify the template using the built-in search/replace? Suggestions or ideas? |
Quote:
|
I have another question, which is php related.
I have this plugin (vb4 version) and it is working, however, I cannot get the "Allow Built-in Accounts" (ldap_allow_builtin) setting to work when putting in a comma separated list. If I only have one userid in this setting it works for that user only, which leads me to believe this is an easy solution. Given the fact that I am php retard, the answer is not glaringly obvious, therefore, I will summarize what I know in hopes someone can help me. In the product xml, this variable (setting) is defined as follows: Code:
<setting varname="ldap_allow_builtin" displayorder="100"> PHP Code:
Thanks. |
Quote:
Thanks to everyone for their excellent work! I have successfully implemented the above version on vBulletin 4.1.10 With regard to this problem: Quote:
After: PHP Code:
PHP Code:
Hope this helps someone Alex |
All times are GMT. The time now is 06:30 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|