[Samba] Re: Authenticating with Active Directory
Jociel Andrade
jcainfo at gmail.com
Tue Mar 13 16:42:43 GMT 2007
Franz,
My output for the command:
--------------- Begin ---------------
root at sun # smbclient -L 192.168.0.20 -U dmadmin%Senha123
added interface ip=192.168.0.120 bcast=192.168.0.255 nmask=255.255.255.0
session request to 192.168.0.20 failed (Called name not present)
session request to 192 failed (Called name not present)
Domain=[ADTESTE] OS=[Windows Server 2003 3790 Service Pack 1]
Server=[Windows Server 2003 5.2]
Sharename Type Comment
--------- ---- -------
C$ Disk Recurso compartilhado padrÆo
IPC$ IPC IPC remoto
ADMIN$ Disk AdministraÆo remota
SYSVOL Disk Compartilhamento do servidor de logon
downloads Disk
NETLOGON Disk Compartilhamento do servidor de logon
Server Comment
--------- -------
Workgroup Master
--------- -------
root at sun #
--------------- End ---------------
I didn't understand. The pam_smb library (smbclient.a) make use of smb.conf?
My smb.conf is in attachment.
On 3/13/07, franz.pfoertsch at brose.net <franz.pfoertsch at brose.net> wrote:
>
> Jociel Andrade wrote:
>
> > Hi all,
> >
> > I need to authenticate Active Directory users in Solaris. I wrote a
> > program to do it using smbclient.a lib, but the method Valid_User is
> > returning aways the code 1 (Network Error). The program is in
> attachment.
> >
> > When I use the following code, the user is sucessfully authenticated:
> > smbclient '\\192.168.0.20\downloads' -W adteste -U dmadmin%Senha123
> >
> > But, this command log in the machine. I need a program that returns TRUE
> > for valid username/password and FALSE, otherwise. Can somebody help me?
> >
> > Thanks in advance,
> > Jociel
>
> We do something like this using aix for years
>
> what happend when you do the following:
>
> smbclient -L 192.168.0.20 -U dmadmin%Senha123
>
> echo $?
>
> at my installation I got the share and a "0" back.
>
> In our productiv environment we create a public share to authenticate web
> users.
>
> the detailed commandline depends on your smb.conf
>
> regards
> Franz
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/listinfo/samba
>
More information about the samba
mailing list