[Samba] Re: Authentication against AD?

Jason Gerfen jason.gerfen at scl.utah.edu
Thu Sep 15 19:51:14 GMT 2005


Jason Gerfen wrote:

> </snip>
>
> Ok I think I have found my problem.  I need to find a way to map Samba 
> to an active directory common name:
>
> %> net ads join -U"Administrator" "cn=users,dc=domain,dc=com"  
> (example, I know the syntax is incorrect)
>
> As far as I can tell it is hard coded in the net ads join routine to 
> tack on the ou=users vs. cn=users, anyone shed some light on this?
>
Some output from strace

%> strace -o tmp net ads join -U "Admin" "users"

write(6, "0C\2\1\5c>\4\36ou=users,dc=SCL,dc=UTAH"..., 69) = 69  <-- here 
is the hard coded ou, I am not 100% familiar with the LDAP RFC but on a 
windows Active Directory there are CN and OU containers
select(1024, [6], [], NULL, {15, 0})    = 1 (in [6], left {14, 999000})
read(6, "0\204\0\0\0\222\2\1", 8)       = 8
read(6, "\5e\204\0\0\0\211\n\1 \4\25DC=scl,DC=utah,DC=ed"..., 144) = 144
rt_sigaction(SIGALRM, {SIG_IGN}, {0x535000, [ALRM], SA_RESTORER, 
0x2aaaab95ff00}, 8) = 0

Anyone shed some light here?  I need a way to overwrite that OU 
parameter to a CN...

-- 
Jason Gerfen
Student Computing Labs, University Of Utah
jason.gerfen at scl.utah.edu

J. Willard Marriott Library
295 S 1500 E, Salt Lake City, UT 84112-0860
801-585-9810

"My girlfriend threated to
 leave me if I went boarding...
 I will miss her."
 ~ DIATRIBE aka FBITKK



More information about the samba mailing list