Esempio n. 1
0
import filr
import os


os.system("cls")
pw=None
srv="filrutp.utopia.novell.com"

user="******"
user,pw=filr.pw(srv,user,pw)
s=filr.auth(user,pw)
userinfo=filr.filrapi(srv,"self","","","",0,0,s)
os.system("cls")

print userinfo["title"]
Esempio n. 2
0
proxypass = files[1][:-1]
proxyuser = proxyuser.replace("user="******"")
proxypass = proxypass.replace("password="******"")
drivertype = "oes"
authtype = "nmas"
oessrv = options.oesserver
filrsrv = options.filr
adminpass = options.admin
hdrive = options.drive
user = options.user
pw = options.password
basedn = options.dn
op = options.operation
dns = options.dnssuffix

s = filr.auth("admin", adminpass)

ou = findous(oessrv, basedn, user, pw)
count = 0
print "Number of Source Login Scripts Found :" + str(len(ou))

if options.operation.lower() == "display":
    print "All operations will not be updated written to the Filr Server and just displayed"
if options.operation.lower() == "create":
    print "Warning all drive mappings found will be written to Filr Server " + filrsrv + " !!!"
    inp = raw_input("Are You Sure ..(Y/N)?")
    if inp.lower() == "n":
        sys.exit()

for temp in ou:
    out = str(count) + ")Login Script = " + str(temp[0])
Esempio n. 3
0
proxypass=files[1][:-1]
proxyuser=proxyuser.replace("user="******"")
proxypass=proxypass.replace("password="******"")
drivertype="oes"
authtype="nmas"
oessrv=options.oesserver
filrsrv=options.filr
adminpass=options.admin
hdrive=options.drive
user=options.user
pw=options.password
basedn=options.dn
op=options.operation
dns=options.dnssuffix

s=filr.auth("admin",adminpass)

ou=findous(oessrv,basedn,user,pw)
count=0
print "Number of Source Login Scripts Found :"+str(len(ou))

if options.operation.lower()=="display":
	print "All operations will not be updated written to the Filr Server and just displayed"
if options.operation.lower()=="create":
	print "Warning all drive mappings found will be written to Filr Server "+filrsrv+" !!!"
	inp=raw_input("Are You Sure ..(Y/N)?")
	if inp.lower()=="n":
		sys.exit()
	

for temp in ou:
Esempio n. 4
0
import filr
import dicttoxml
import os
from xml.dom.minidom import parseString
import urllib3
urllib3.disable_warnings()


os.system("cls")
server="filrutp.utopia.novell.com"
user="******"
user,pw=filr.pw(server,user,None)
s=filr.auth(user,pw)
test=filr.savenfs(server,"c:\\netfolders\\nfs",user,s)
#print test
test1=filr.savenf(server,"c:\\netfolders\\nf",user,s)
#print test1

temp=filr.restnfs(server,"c:\\netfolders\\nfs","password",user,s)
temp=filr.restnf(server,"c:\\netfolders\\nf",user,s)