Thanks for your help Sean
I've goth the LDAP plugin working now on my development instance
What a GodSend!
I've been looking at the .php source code in ldap_auth.php
I'm looking to see if I can make a change so that when a new user logs in for the first time
they don't get their own blog set-up but just an account
I can see that the code in ldap_auth.php is where I need to be looking
As an aside, I'm awaiting a change request outstanding with our network team to make a DNS
change for our server to enable wildcard DNS resolution. This will allow us to have blog urls such as
abcde.myserver.com/blogs for individual users
I've already got wildcard DNS working on a pre-development WPMU instance which is hosted outside of our network,
so I know I can get this bit working ok.
it appears that the ldap_auth.php code I need to change is in the lines here
//Because WPMU has a bug in the create blog function we need this code
//To prevent errors with the wpmu_create_blog function. See Ticket #184
$result = $wpdb->query( "CREATE TABLE wp_" . $user_id . "_options (option_id bigint(20) NOT NULL auto_increment, blog_id int(11) NOT NULL default 0, option_name varchar(64) NOT NULL default '', option_can_override enum('Y','N') NOT NULL default 'Y', option_type int(11) NOT NULL default 1, option_value longtext NOT NULL, option_width int(11) NOT NULL default 20, option_height int(11) NOT NULL default 8, option_description tinytext NOT NULL, option_admin_level int(11) NOT NULL default 1, autoload enum('yes','no') NOT NULL default 'yes', PRIMARY KEY (option_id,blog_id,option_name), KEY option_name (option_name)) ENGINE=MyISAM DEFAULT CHARSET=utf8;" );
//Create and update the users blog.
$meta = apply_filters('signup_create_blog_meta', array ('lang_id' => 'en', 'public' => 0));
$blog_id = wpmu_create_blog($newdomain, $path, $username . "'s blog", $user_id, $meta);
do_action('wpmu_activate_blog', $blog_id, $user_id, $password, $username . "'s blog", $meta);
//Must recreated the login object for our shiny NEW users.
$login = get_userdatabylogin($username);
//Setup redirection to users home directory.
if (!strpos($_REQUEST['redirect_to'], $username)) {
$_REQUEST['redirect_to'] = $username . "/" . $_REQUEST['redirect_to'];
}
I've made a few attempts already but get "user does not have permission to view this page" messages.
I suspect this may be due to us not having wildcard DNS set-up just yet, so once this bit is set, I'll try again.
In the mean time I'm interested in knowing if anyone has already tried this type of mod and what their experiences
have been with this
I'm close (but no cigar just yet!)...