Problems with TNG and LDAP
Luke Kenneth Casson Leighton
lkcl at samba.org
Mon Feb 21 20:20:02 GMT 2000
oh , this means that ... ok, i've got this. please cvs update, there are
some autoconf issues.
>
> Here's the patch I've been using to work around that error.
>
> Index: util_sec.c
> ===================================================================
> RCS file: /cvsroot/samba/source/lib/util_sec.c,v
> retrieving revision 1.2.4.1
> diff -u -w -r1.2.4.1 util_sec.c
> --- util_sec.c 2000/01/14 22:01:19 1.2.4.1
> +++ util_sec.c 2000/02/21 18:40:47
> @@ -42,6 +42,17 @@
> #define smb_panic(x) exit(1)
> #endif
>
> +#if HAVE_SETRESUID
> + #define USE_SETRESUID 1
> +#elif HAVE_SETEUID
> + #define USE_SETEUID 1
> +#elif HAVE_SETREUID
> + #define USE_SETREUID 1
> +#elif HAVE_SETUIDX
> + #define USE_SETUIDX 1
> +#endif
> +
> +
> /****************************************************************************
> abort if we haven't set the uid correctly
> ****************************************************************************/
>
>
>
> > ldap suffix = "ou=People,dc=student,dc=uit,dc=no"
>
> If you're trying to share entries with the system accounts per RFC2307, I've also found the following patch useful
>
> Index: ldap.c
> ===================================================================
> RCS file: /cvsroot/samba/source/passdb/ldap.c,v
> retrieving revision 1.36
> diff -u -w -r1.36 ldap.c
> --- ldap.c 1999/03/25 13:54:30 1.36
> +++ ldap.c 2000/02/21 18:49:35
> @@ -272,11 +272,11 @@
> *mods = NULL;
> if(operation == LDAP_MOD_ADD) { /* immutable attributes */
> ldap_make_mod(mods, LDAP_MOD_ADD, "objectclass", "sambaAccount");
> -
> +/*
> ldap_make_mod(mods, LDAP_MOD_ADD, "uid", newpwd->unix_name);
> slprintf(temp, sizeof(temp)-1, "%d", newpwd->unix_uid);
> ldap_make_mod(mods, LDAP_MOD_ADD, "uidNumber", temp);
> -
> +*/
> ldap_make_mod(mods, LDAP_MOD_ADD, "ntuid", newpwd->nt_name);
> slprintf(temp, sizeof(temp)-1, "%x", newpwd->user_rid);
> ldap_make_mod(mods, LDAP_MOD_ADD, "rid", temp);
>
>
>
<a href=" mailto:lkcl at samba.org" > Luke Kenneth Casson Leighton </a>
<a href=" http://cb1.com/~lkcl" > Samba and Network Development </a>
<a href=" http://samba.org" > Samba Web site </a>
<a href=" http://www.iss.net" > Internet Security Systems, Inc. </a>
<a href=" http://mcp.com" > Macmillan Technical Publishing </a>
ISBN1578701503 DCE/RPC over SMB: Samba and Windows NT Domain Internals
More information about the samba-ntdom
mailing list