[Samba] Samba 3.0 + LDAP

Gonzalo Servat gonzalo at unixpac.com.au
Wed May 29 21:56:03 GMT 2002


On Thu, 2002-05-30 at 14:20, abartlet at samba.org wrote:
> On Wed, May 29, 2002 at 09:14:13PM -0700, abartlet at samba.org wrote:
> > On Thu, May 30, 2002 at 01:24:55PM +1000, Gonzalo Servat wrote:
> > > On Wed, 2002-05-29 at 18:13, abartlet at samba.org wrote:
> > > > On Wed, May 29, 2002 at 05:00:44PM +1000, Gonzalo Servat wrote:
> > > > > Sorry Andrew to hassle you again.
> > > > > 
> > > > > Just one more question. I noticed in the logs that it checks to see if
> > > > > computername$ exists, and if it doesn't it tries to add it. The error
> > > > > message is:
> > > > > 
> > > > > "NO user RID specified on account apollo$, cannot store!"
> > > > 
> > > > You either need to use ldapsam_nua or setup an 'add machine script'
> > > > 
> > > > (both of these are HEAD only options)
> > > > 
> > > > The _nua backend allows accounts to be added to LDAP without an already
> > > > allocated unix user (and therfore RID).
> > > 
> > > I changed 'ldapsam' to read 'ldapsam_nua' and added:
> > > 
> > > non unix account range = 10000-20000
> > > 
> > > .. but I still couldn't join the domain. It says it couldn't allocate a
> > > RID in that range. I looked at the log and noticed it does a search for
> > > any users with the objectClass "sambaAccount" to see what the last used
> > > RID was and for me it was RID 1000 so I changed that range to be
> > > 1000-2000 and now it doesn't join the domain either but that error is
> > > gone.
> > 
> > OK, I'll try to chase that one down.  It looks like I botched up the script
> > a little...
> 
> (sorry, scripts on the brain...)  I think I've fixed it, can you try the patch below:

I'll try it once I download samba from CVS. I wasn't able to patch it as
I'm using samba 3.0a17 - not CVS.

Gonzalo.

> Thanks,  
> Andrew Bartlett
> 
> Index: passdb/pdb_ldap.c
> ===================================================================
> RCS file: /home/cvs/samba/source/passdb/pdb_ldap.c,v
> retrieving revision 1.39
> diff -u -r1.39 pdb_ldap.c
> --- passdb/pdb_ldap.c   2002/05/26 19:11:52     1.39
> +++ passdb/pdb_ldap.c   2002/05/30 04:20:02
> @@ -1047,6 +1047,10 @@
>         }
> 
>         ldap_msgfree(result);
> +
> +       if (top_rid < ldap_state->low_nua_rid)
> +               top_rid = ldap_state->low_nua_rid;
> +
>         return top_rid;
>  }
> 
> 
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba






More information about the samba mailing list