[Samba] Re: pdb_mysql isn't working for me :-(

2002-11-07 Thread Jelmer Vernooij
On Thu, Nov 07, 2002 at 08:13:38PM +1100, xfesty wrote:
> On Thursday, November 7, 2002, at 07:58 PM, Jelmer Vernooij wrote:
> > Yep, you do.
> >
> > Btw. The machine accounts are usually saved in the passdb, so if you 
> > switch to
> > using the pdb_mysql, you need to join all machines to the domain 
> > *again* (
> > or use multiple passdb backends).
> 
> Sorry for the second email, but does this mean I need to add machine 
> accounts into the mysql db too?
Yep, you need to have the machine accounts in either of your passdb backends.
(You can use more than one of them, for example: 
passdb backend = plugin:/path/to/pdb_mysql.so:identifier smbpasswd
new accounts are added to the first backend)

Next to that, the machine accounts need a standard unix account. But 
those can come from nss_mysql.

> Anything special need to be done to identify this as a machine account? 
>   (The columns that I had in the previous email - are they sufficient?)
I don't have that email here right now, so I can't tell whether your 
columns were correct, but the account attributes are stored in the acct_ctrl 
and acct_desc field.

Jelmer
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Re: pdb_mysql isn't working for me :-(

2002-11-07 Thread xfesty
On Thursday, November 7, 2002, at 07:58 PM, Jelmer Vernooij wrote:

Yep, you do.

Btw. The machine accounts are usually saved in the passdb, so if you 
switch to
using the pdb_mysql, you need to join all machines to the domain 
*again* (
or use multiple passdb backends).

Sorry for the second email, but does this mean I need to add machine 
accounts into the mysql db too?

Anything special need to be done to identify this as a machine account? 
 (The columns that I had in the previous email - are they sufficient?)

Thanks again

R

--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


[Samba] Re: pdb_mysql isn't working for me :-(

2002-11-07 Thread xfesty
On Thursday, November 7, 2002, at 07:58 PM, Jelmer Vernooij wrote:

Yep, you do.

Btw. The machine accounts are usually saved in the passdb, so if you 
switch to
using the pdb_mysql, you need to join all machines to the domain 
*again* (
or use multiple passdb backends).

No problems, I figured this may have been the case as I was creating 
the mysql db.

I see what causes this - there have been updates to pdb_mysql 
yesterday,
so could you try again (the pdb_get_init_flag thing has been resolved, 
which
causes all this)

I'll do that now.

Thanks again Jelmer, you've been really helpful through this ;)

R


Jelmer



--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



[Samba] Re: pdb_mysql isn't working for me :-(

2002-11-07 Thread Jelmer Vernooij
On Thu, Nov 07, 2002 at 07:30:32PM +1100, xfesty wrote:
> Trying to auth users against a mysql database using pdb_mysql.  Using 
> samba3.0 from CVS, running as a PDC.
> 
> Few questions as well: In the "username column:", I'm assuming I need a 
> real unix user here?  Can I have a whole bunch of "nt username" users 
> (i.e. non-unix users) in the mysql db to be auth'ed with samba, but 
> they're all using the same unix user?
> 
> Do I also need a admin user (i.e. root/Administrator) in this mysql db 
> so I can join the 2K/XP machines onto the domain?
Yep, you do.

Btw. The machine accounts are usually saved in the passdb, so if you switch to
using the pdb_mysql, you need to join all machines to the domain *again* (
or use multiple passdb backends).

> root@serber[/var/log/samba]# tail -f log.smbd
> [2002/11/07 19:19:30, 0] passdb/pdb_plugin.c:pdb_init_plugin(51)
>Failed to load sam plugin /usr/local/lib/pdb_mysql.so using 
> sys_dlopen (/usr/local/lib/pdb_mysql.so: undefined symbol: 
> pdb_get_init_flag)
> [2002/11/07 19:19:30, 0] 
> passdb/pdb_interface.c:make_pdb_methods_name(397)
>pdb backend plugin:/usr/local/lib/pdb_mysql.so:mysql did not 
> correctly init (error was NT_STATUS_UNSUCCESSFUL)
> [2002/11/07 19:19:30, 1] 
> passdb/pdb_interface.c:make_pdb_context_list(475)
>Loading plugin:/usr/local/lib/pdb_mysql.so:mysql failed!

I see what causes this - there have been updates to pdb_mysql yesterday, 
so could you try again (the pdb_get_init_flag thing has been resolved, which 
causes all this)

Jelmer
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba