System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Joining HPUX server to windows domain

 
Venkat_11
Regular Advisor

Joining HPUX server to windows domain

I am trying to configure samba on HPUX 11i server and share one of the directory to windows environment.

CIFS version A.01.09.01 installed on the HPUX server.

When i tried running net join its failing complaining about net command.

usxsl014:root# net join uswsl002.ddns.com -U a139997
sh: net: not found.


which path i have to use to run the net join command?

Here is how my smb.conf looks.

workgroup = ddns
netbios name = usxl004
security = domain
encrypt passwords = Yes

password server = uswsl002.ddns.com,uswsl001.ddns.com
username map = /var/opt/samba/username.map
lm announce = True
local master = No
wins server = 10.200.17.66
mangled names = Yes
mangled stack = 4096
client code page = 437
guest account = smbnull

[ic4adm]
comment = Interface Path
path=/Interface/test
writeable = yes
hide dot files = no
guest ok = no
public = yes

Thanks In Advance.
14 REPLIES
Roopesh Francis_1
Trusted Contributor

Re: Joining HPUX server to windows domain

Venkat,

try,
/opt/asu/lanman/bin/net

Thanks
Venkat_11
Regular Advisor

Re: Joining HPUX server to windows domain

Thanks for quick response.

root# ll /opt/asu/lanman/bin/net
/opt/asu/lanman/bin/net not found
Roopesh Francis_1
Trusted Contributor

Re: Joining HPUX server to windows domain

try
/opt/samba/bin/net
Venkat_11
Regular Advisor

Re: Joining HPUX server to windows domain

No luck...do i have to install any software?

root# ll /opt/samba/bin/net
/opt/samba/bin/net not found
root#
root# cd /opt/samba/bin
root# ll
total 31168
-rwxr-xr-x 1 root sys 1780 Apr 12 2002 addtosmbpass
-rwxr-xr-x 1 root sys 517 Jul 2 2003 convert_smbpasswd
-rwxr-xr-x 1 root sys 4382 Jul 2 2003 findsmb
-rwxr-xr-x 1 root sys 507904 Jul 2 2003 make_printerdef
-rwxr-xr-x 1 root sys 507904 Jul 2 2003 make_smbcodepage
-rwxr-xr-x 1 root sys 499712 Jul 2 2003 make_unicodemap
-rwxr-xr-x 1 root sys 937984 Jul 2 2003 nmbd
-rwxr-xr-x 1 root sys 745472 Jul 2 2003 nmblookup
-rwxr-xr-x 1 root sys 1687552 Jul 2 2003 rpcclient
-rwxr-xr-x 1 root sys 23895 Jul 2 2003 samba_setup
-rwxr-xr-x 1 root sys 1589248 Jul 2 2003 smbcacls
-rwxr-xr-x 1 root sys 839680 Jul 2 2003 smbclient
-rwxr-xr-x 1 root sys 552960 Jul 2 2003 smbcontrol
-rwxr-xr-x 1 root sys 2621440 Jul 2 2003 smbd
-rwxr-xr-x 1 root sys 1478656 Jul 2 2003 smbpasswd
-rwxr-xr-x 1 root sys 745472 Jul 2 2003 smbspool
-rwxr-xr-x 1 root sys 557056 Jul 2 2003 smbstatus
-rwxr-xr-x 1 root sys 4970 Jul 2 2003 smbtar
-rwxr-xr-x 1 root sys 2303 Jul 2 2003 startsmb
-rwxr-xr-x 1 root sys 2239 Jul 2 2003 stopsmb
-rwxr-xr-x 1 root sys 1499136 Jul 2 2003 swat
-rwxr-xr-x 1 root sys 3870 Jul 2 2003 syncsmbpasswd
-rwxr-xr-x 1 root sys 53248 Jul 2 2003 tdbbackup
-rwxr-xr-x 1 root sys 507904 Jul 2 2003 testparm
-rwxr-xr-x 1 root sys 520192 Jul 2 2003 testprns
Roopesh Francis_1
Trusted Contributor

Re: Joining HPUX server to windows domain

It should come with samba...

can you please try to find the command

find /opt/samba -name net -print

Venkat_11
Regular Advisor

Re: Joining HPUX server to windows domain

No luck. We have another server which is using samba for which also i dont see net in the above paths.
Roopesh Francis_1
Trusted Contributor

Re: Joining HPUX server to windows domain

check for this link.

http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/NetCommand.html...

worst case,can you try to do
find / -name net
if possible... :(
eric roseme
Respected Contributor

Re: Joining HPUX server to windows domain

Your version of CIFS/Samba is too old to have the net command. You need to upgrade your CIFS/Samba version to A.02.04 on software.hp.com. This will give you domain membership up to W2008. Note that "security=domain" will require "net rpc join" and you will get NTLM level authentication. If you want full kerberos auth-n, you will need "security = ads" and "net ads join". If that's what you want, use this whitepaper to help you out:

http://www.docs.hp.com/en/14985/HPCIFSKerberosV105.pdf

Also, the A.02.04 admin Guide will help you out with domain membership.
Vijaya Kumar_3
Respected Contributor

Re: Joining HPUX server to windows domain

It could be a older version of samba that you installed. Samba 3 comes with the net command.

http://us6.samba.org/samba/docs/man/Samba-HOWTO-Collection/domain-member.html#id2571102

http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/NetCommand.html

The net command is one of the new features of Samba-3 and is an attempt to provide a useful tool for the majority of remote management operations necessary for common tasks.

Regards
Vijay Chinnasamy
Known is a drop, unknown is ocean - visit me at http://vijay.theunixplace.com
Rita C Workman
Honored Contributor

Re: Joining HPUX server to windows domain

I'm just going to touch some basics here (very basic), cause you obviously are using a passwd server (which I don't bother with internally) and such. So just addressing the connection here:

Once you create your new samba share info in your /etc/opt/smb.conf file, all you have to do is go to the Windows PC and:

Right Click Start/Explore
From top toolbar click on Tools
Click on Map Network Drive
Pick a free drive letter (line 1)
Enter your patch in (line 2)

Example from [lic4adm]
\\\Interface\test

=UNIX SAMBA server
Assuming that Interface\test is the full path

Hope this helps get you started,
Rgrds,
Rita
Rita C Workman
Honored Contributor

Re: Joining HPUX server to windows domain

...and one last thing...just in case-

startsmb

stopsmb

smbstatus

/rcw
Venkat_11
Regular Advisor

Re: Joining HPUX server to windows domain

Thanks everybody for all the replies. The issue here is i am able to access the share drive from windows server but its asking for password every time.

I want to resolve the following issues.

entering password everything i access the share directory from windows.

Adding unix server to windows domain.

Do i need to upgrade samba to get the above things done?
eric roseme
Respected Contributor

Re: Joining HPUX server to windows domain

With "security = domain" you must join the domain before your clients can access your server. If your clients are authenticated into the domain when they log on, then they will not have to enter a password to map a share on the server. Your version of CIFS/Samba equates roughly to Samba 2.0.7 or something like that. It's entirely possible that you cannot join a W2003, W2003R2, or W2008 domain with that Samba version. So upgrade.

With "security = server" you do not need to join the domain, but every time a user maps a share they will have to enter a password (the CIFS/Samba server must pass-thru the auth-n request to the DC). However, "security = server" requires anonymous logons, which W2003, W2003R2, and W2008 do not allow. So if you have one of those Windows Server versions, upgrade.
Venkat_11
Regular Advisor

Re: Joining HPUX server to windows domain

I upgraded samba server and client on my server. After that when i tried to run net join its failing with the below error.

usxsl014:root# ./net ads join -U a206173
[2009/08/28 10:30:43, 0] param/loadparm.c:map_parameter(2903)
Unknown parameter encountered: "client code page"
[2009/08/28 10:30:43, 0] param/loadparm.c:lp_do_parameter(3644)
Ignoring unknown parameter "client code page"
[2009/08/28 10:30:43, 0] param/loadparm.c:map_parameter(2903)
Unknown parameter encountered: "mangled stack"
[2009/08/28 10:30:43, 0] param/loadparm.c:lp_do_parameter(3644)
Ignoring unknown parameter "mangled stack"
a206173's password:
[2009/08/28 10:30:45, 0] utils/net_ads.c:ads_startup_int(286)
ads_connect: No logon servers
Failed to join domain: No logon servers

Do i need to start winbindd service if so how can i start?

Thanks.